File: rules.real

package info (click to toggle)
linux-latest 63%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 352 kB
  • sloc: python: 144; makefile: 54
file content (52 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download | duplicates (3)
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
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-tools

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: DH_OPTIONS = -p$(PACKAGE_NAME)
install-doc:
	dh_prep
	$(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-tools: PACKAGE_NAME = linux-tools
install-tools: DH_OPTIONS = -p$(PACKAGE_NAME)
install-tools:
	dh_prep
	$(MAKE) -f debian/rules.real install-base