]> rtime.felk.cvut.cz Git - can-eth-gw.git/blob - linux-build/GNUmakefile
canutils: Update kernel header
[can-eth-gw.git] / linux-build / GNUmakefile
1 VERSION = 3
2 PATCHLEVEL = 7
3
4 lastword = $(word $(words $(1)),$(1))
5 makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))
6
7 ifeq ("$(origin V)", "command line")
8 VERBOSE := $(V)
9 endif
10 ifneq ($(VERBOSE),1)
11 Q := @
12 endif
13
14 MAKEARGS := -C $(shell cd $(CURDIR)/../linux; pwd)
15 MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))
16
17 MAKEFLAGS += --no-print-directory
18
19 .PHONY: all $(MAKECMDGOALS)
20
21 all     := $(filter-out all Makefile,$(MAKECMDGOALS))
22
23 all:
24         $(Q)$(MAKE) $(MAKEARGS) $(all)
25
26 Makefile:;
27
28 $(all): all
29         @:
30
31 %/: all
32         @: