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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#! /usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=3
BASEPATCH=reiser4-2004.08.13-linux-2.6.8-rc4-mm1.diff
VERSION=20040813
KERNELS=2.6.8 2.6.8.1
KERNELS_DESC=`echo $(KERNELS) | sed -e 's/ /, /g'`
build: build-stamp
build-stamp:
dh_testdir
@for KVER in $(KERNELS); do \
echo -n "building reiser4-$(VERSION)-$$KVER.patch..."; \
cp $(BASEPATCH) reiser4-$(VERSION)-$$KVER.patch; \
if [ -f reiser4-$(VERSION)-$$KVER.diff -a -r reiser4-$(VERSION)-$$KVER.diff ]; then \
patch -s reiser4-$(VERSION)-$$KVER.patch reiser4-$(VERSION)-$$KVER.diff; \
echo ""; \
else \
rm reiser4-$(VERSION)-$$KVER.patch; \
echo " (skipped)"; \
fi \
done
touch build-stamp
clean:
dh_testdir
dh_testroot
@for KVER in $(KERNELS); do \
echo "rm -f reiser4-$(VERSION)-$$KVER.patch"; \
rm -f reiser4-$(VERSION)-$$KVER.patch; \
done
dh_clean build-stamp
# Build architecture-independent files here.
binary-indep: build
dh_testdir
dh_testroot
dh_installkpatches
dh_installchangelogs
dh_installdocs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol -- -V"cavok:Supported-Kernel-Versions=$(KERNELS_DESC)"
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch:
# We have nothing to do by default.
binary: binary-indep binary-arch
.PHONY: clean binary-indep binary-arch binary build
|