File: rules.real

package info (click to toggle)
linux-latest 46
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 512 kB
  • sloc: python: 138; makefile: 54; sh: 9
file content (70 lines) | stat: -rw-r--r-- 1,892 bytes parent folder | download
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
66
67
68
69
70
SHELL  := bash -e
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)

export DH_OPTIONS
export DEB_HOST_ARCH

include debian/rules.defs

binary-indep: install-doc
binary-indep: install-source
binary-indep: install-tools
binary-indep: install-doc-2.6
binary-indep: install-source-2.6
binary-indep: install-tools-2.6

install-base:
	dh_bugfiles
	dh_installdebconf
	dh_installchangelogs
	dh_installdocs
	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

install-doc-2.6: PACKAGE_NAME = linux-doc-2.6
install-doc-2.6: DH_OPTIONS = -p$(PACKAGE_NAME)
install-doc-2.6:
	dh_prep
	$(MAKE) -f debian/rules.real install-base GENCONTROL_ARGS=$(patsubst -v%,-v1:%,$(GENCONTROL_ARGS))

install-source-2.6: PACKAGE_NAME = linux-source-2.6
install-source-2.6: DH_OPTIONS = -p$(PACKAGE_NAME)
install-source-2.6:
	dh_prep
	$(MAKE) -f debian/rules.real install-base GENCONTROL_ARGS=$(patsubst -v%,-v1:%,$(GENCONTROL_ARGS))

install-tools-2.6: PACKAGE_NAME = linux-tools-2.6
install-tools-2.6: DH_OPTIONS = -p$(PACKAGE_NAME)
install-tools-2.6:
	dh_prep
	$(MAKE) -f debian/rules.real install-base