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 61 62 63 64 65
|
SHELL := bash -e
ifdef ARCH
override DEB_HOST_ARCH := $(shell dpkg-architecture -a'$(ARCH)' -f -qDEB_HOST_ARCH)
override DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -a'$(ARCH)' -f -qDEB_HOST_GNU_TYPE)
DEB_BUILD_ARCH := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_BUILD_ARCH)
endif
export DH_OPTIONS
export DEB_HOST_ARCH
include debian/rules.defs
binary-indep: install-doc
binary-indep: install-source
binary-indep: install-perf
install-base:
dh_bugfiles
dh_installdebconf
dh_installchangelogs
dh_installdocs
dh_lintian
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol -- $(GENCONTROL_ARGS)
dh_md5sums
dh_builddeb
install-dummy:
dh_testdir
dh_testroot
dh_prep
$(MAKE) -f debian/rules.real install-base
install-doc: PACKAGE_NAME = linux-doc
install-doc: PACKAGE_DIR = debian/$(PACKAGE_NAME)
install-doc: DH_OPTIONS = -p$(PACKAGE_NAME)
install-doc:
dh_prep
mkdir -p $(PACKAGE_DIR)/usr/share/doc/$(PACKAGE_NAME)
for file in CREDITS.gz Documentation html MAINTAINERS.gz; do \
ln -sf ../linux-doc-$(VERSION)/$$file $(PACKAGE_DIR)/usr/share/doc/$(PACKAGE_NAME)/ || exit; \
done
$(MAKE) -f debian/rules.real install-base
install-source: PACKAGE_NAME = linux-source
install-source: DH_OPTIONS = -p$(PACKAGE_NAME)
install-source:
dh_prep
$(MAKE) -f debian/rules.real install-base
install-perf: PACKAGE_NAME = linux-perf
install-perf: DH_OPTIONS = -p$(PACKAGE_NAME)
install-perf:
dh_prep
$(MAKE) -f debian/rules.real install-base
install-flavour:
dh_testdir
dh_testroot
$(MAKE) -f debian/rules.real install-base DH_OPTIONS='-plinux-image$(LOCALVERSION) -plinux-headers$(LOCALVERSION)'
ifeq ($(DEBUG),True)
$(MAKE) -f debian/rules.real install-base DH_OPTIONS='-plinux-image$(LOCALVERSION)-dbg'
endif
|