Rev 179 | Rev 184 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 179 | Rev 183 | ||
---|---|---|---|
1 | #!/usr/bin/make -f |
1 | #!/usr/bin/make -f |
2 | # -*- makefile -*- |
2 | # -*- makefile -*- |
3 | # Sample debian/rules that uses debhelper. |
3 | # Sample debian/rules that uses debhelper. |
4 | # GNU copyright 1997 to 1999 by Joey Hess. |
4 | # GNU copyright 1997 to 1999 by Joey Hess. |
5 | 5 | ||
6 | # Uncomment this to turn on verbose mode. |
6 | # Uncomment this to turn on verbose mode. |
7 | #export DH_VERBOSE=1 |
7 | #export DH_VERBOSE=1 |
8 | 8 | ||
9 | # These are used for cross-compiling and for saving the configure script |
9 | # These are used for cross-compiling and for saving the configure script |
10 | # from having to guess our platform (since we know it already) |
10 | # from having to guess our platform (since we know it already) |
11 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
11 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
12 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
12 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
13 | DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
13 | DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
14 | 14 | ||
15 | ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) |
15 | ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) |
16 | buildflags = --build=$(DEB_BUILD_GNU_TYPE) |
16 | buildflags = --build=$(DEB_BUILD_GNU_TYPE) |
17 | else |
17 | else |
18 | buildflags = --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) |
18 | buildflags = --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) |
19 | endif |
19 | endif |
20 | 20 | ||
21 | parallel = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
21 | parallel = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
22 | ifneq (,$(parallel)) |
22 | ifneq (,$(parallel)) |
23 | jobsflag = -j$(parallel) |
23 | jobsflag = -j$(parallel) |
24 | endif |
24 | endif |
25 | 25 | ||
26 | config.status: configure |
26 | config.status: configure |
27 | dh_testdir |
27 | dh_testdir |
28 | # Add here commands to configure the package. |
28 | # Add here commands to configure the package. |
29 | dh_update_autotools_config |
29 | dh_update_autotools_config |
30 | ./configure $(buildflags) \ |
30 | ./configure $(buildflags) \ |
31 | --prefix=/usr \ |
31 | --prefix=/usr \ |
32 | --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ |
32 | --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ |
33 | --enable-shared \ |
33 | --enable-shared \ |
34 | --disable-dependency-tracking \ |
34 | --disable-dependency-tracking \ |
35 | --enable-fat \ |
35 | --enable-fat \ |
36 | $(shell DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed dpkg-buildflags --export=configure) |
36 | $(shell DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed dpkg-buildflags --export=configure) |
37 | 37 | ||
38 | 38 | ||
39 | build: build-stamp |
39 | build: build-stamp |
40 | build-stamp: config.status |
40 | build-stamp: config.status |
41 | dh_testdir |
41 | dh_testdir |
42 | 42 | ||
43 | # Add here commands to compile the package. |
43 | # Add here commands to compile the package. |
44 | $(MAKE) $(jobsflag) MAKEINFO='makeinfo --enable-encoding' |
44 | $(MAKE) $(jobsflag) MAKEINFO='makeinfo --enable-encoding' |
45 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
45 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
46 | $(MAKE) check |
46 | $(MAKE) check |
47 | endif |
47 | endif |
48 | 48 | ||
49 | touch build-stamp |
49 | touch build-stamp |
50 | 50 | ||
51 | clean: |
51 | clean: |
52 | dh_testdir |
52 | dh_testdir |
53 | dh_testroot |
53 | dh_testroot |
54 | rm -f build-stamp |
54 | rm -f build-stamp |
55 | 55 | ||
56 | # Add here commands to clean up after the build process. |
56 | # Add here commands to clean up after the build process. |
57 | [ ! -f Makefile ] || $(MAKE) distclean |
57 | [ ! -f Makefile ] || $(MAKE) distclean |
58 | dh_clean |
58 | dh_clean |
59 | 59 | ||
60 | install: build |
60 | install: build |
61 | dh_testdir |
61 | dh_testdir |
62 | dh_testroot |
62 | dh_testroot |
63 | dh_prep |
63 | dh_prep |
64 | dh_installdirs |
64 | dh_installdirs |
65 | 65 | ||
66 | # Add here commands to install the package into debian/tmp |
66 | # Add here commands to install the package into debian/tmp |
67 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
67 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
68 | 68 | ||
69 | # Build architecture-independent files here. |
69 | # Build architecture-independent files here. |
70 | build-indep: |
70 | build-indep: |
71 | binary-indep: |
71 | binary-indep: |
72 | # Nothing to do |
72 | # Nothing to do |
73 | 73 | ||
74 | # Build architecture-dependent files here. |
74 | # Build architecture-dependent files here. |
75 | build-arch: build |
75 | build-arch: build |
76 | binary-arch: build-arch install |
76 | binary-arch: build-arch install |
77 | dh_testdir |
77 | dh_testdir |
78 | dh_testroot |
78 | dh_testroot |
79 | dh_install -a --sourcedir=debian/tmp |
79 | dh_install -a --sourcedir=debian/tmp |
80 | dh_installdocs -a -Nnettle-dev --link-doc=libnettle7 |
80 | dh_installdocs -a -Nnettle-dev --link-doc=libnettle7 |
81 | dh_installdocs -a -pnettle-dev |
81 | dh_installdocs -a -pnettle-dev |
82 | dh_installchangelogs -a ChangeLog |
82 | dh_installchangelogs -a ChangeLog |
83 | dh_installexamples -a |
83 | dh_installexamples -a |
84 | dh_installinfo -a |
84 | dh_installinfo -a |
85 | dh_installman -a |
85 | dh_installman -a |
- | 86 | dh_lintian -a |
|
86 | dh_strip -a |
87 | dh_strip -a |
87 | dh_compress -a -X.pdf |
88 | dh_compress -a -X.pdf |
88 | dh_fixperms -a |
89 | dh_fixperms -a |
89 | dh_makeshlibs -a -V |
90 | dh_makeshlibs -a -V |
90 | dh_installdeb -a |
91 | dh_installdeb -a |
91 | dh_shlibdeps -a |
92 | dh_shlibdeps -a |
92 | dh_gencontrol -a |
93 | dh_gencontrol -a |
93 | dh_md5sums -a |
94 | dh_md5sums -a |
94 | dh_builddeb -a |
95 | dh_builddeb -a |
95 | 96 | ||
96 | binary: binary-arch |
97 | binary: binary-arch |
97 | .PHONY: build build-indep build-arch clean clean-patched binary-indep binary-arch binary install |
98 | .PHONY: build build-indep build-arch clean clean-patched binary-indep binary-arch binary install |