1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/usr/bin/make -f
# copied from kernel-image-i386
version26 := $(shell \
sed -n 's/.*linux-source-\([^,]*\).*/\1/p; t e; b; :e q' \
debian/control \
)
build: build-stamp
build-stamp:
dh_testdir
[ -d build ] || mkdir build
cd build && tar xjf /usr/src/linux-source-$(version26).tar.bz2
$(MAKE) KERNELTREE26=$(CURDIR)/build/linux-source-$(version26)
touch build-stamp
clean:
dh clean
binary-indep: build
dh binary-indep --after dh_auto_build
binary-arch: build
# There are no architecture-dependent files to be uploaded
# generated by this package. If there were any they would be
# made here.
# Below here is fairly generic really
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
|