]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - kernel/build/glab-2.6.36/GNUmakefile
Use 2.6.36.2 kernel at glab
[can-benchmark.git] / kernel / build / glab-2.6.36 / GNUmakefile
1 # Automatically generated by /home/wsh/projects/can-benchmark/kernel/2.6.33-rt/scripts/mkmakefile: don't edit
2
3 VERSION = 2
4 PATCHLEVEL = 6
5
6 lastword = $(word $(words $(1)),$(1))
7 makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))
8
9 MAKEARGS := -C $(shell cd ../../2.6.36; pwd)
10 MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))
11
12 MAKEFLAGS += --no-print-directory
13
14 .PHONY: all $(MAKECMDGOALS)
15
16 all     := $(filter-out all Makefile,$(MAKECMDGOALS))
17
18 KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
19
20
21 all:
22         $(MAKE) $(MAKEARGS) $(all) ARCH=i386
23 ifeq ($(all),targz-pkg)
24         scp linux-$(KERNELRELEASE).tar.gz root@glab:
25         ssh root@glab 'tar -C / -xf linux-$(KERNELRELEASE).tar.gz; depmod $(KERNELRELEASE)'
26 endif
27
28
29 Makefile:;
30
31 $(all) %/: all
32         @:
33