OLD | NEW |
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 # | 4 # |
5 # This file was originally written by Joey Hess and Craig Small. | 5 # This file was originally written by Joey Hess and Craig Small. |
6 # As a special exception, when this file is copied by dh-make into a | 6 # As a special exception, when this file is copied by dh-make into a |
7 # dh-make output file, you may use that output file without restriction. | 7 # dh-make output file, you may use that output file without restriction. |
8 # This special exception was added by Craig Small in version 0.37 of dh-make. | 8 # This special exception was added by Craig Small in version 0.37 of dh-make. |
9 # | 9 # |
10 # Modified to make a template file for a multi-binary package with separated | 10 # Modified to make a template file for a multi-binary package with separated |
(...skipping 10 matching lines...) Expand all Loading... |
21 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | 21 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
22 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) | 22 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
23 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) | 23 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) |
24 CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) | 24 CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) |
25 CONFFLAGS= --disable-dbus-python-check | 25 CONFFLAGS= --disable-dbus-python-check |
26 else | 26 else |
27 CROSS= --build $(DEB_BUILD_GNU_TYPE) | 27 CROSS= --build $(DEB_BUILD_GNU_TYPE) |
28 CONFFLAGS= | 28 CONFFLAGS= |
29 endif | 29 endif |
30 | 30 |
31 configure: | 31 config.status: |
| 32 » dh_testdir |
32 touch ChangeLog | 33 touch ChangeLog |
33 NOCONFIGURE=1 ./autogen.sh | 34 NOCONFIGURE=1 ./autogen.sh |
34 | |
35 config.status: configure | |
36 dh_testdir | |
37 # Add here commands to configure the package. | 35 # Add here commands to configure the package. |
38 ifneq "$(wildcard /usr/share/misc/config.sub)" "" | 36 ifneq "$(wildcard /usr/share/misc/config.sub)" "" |
39 ln -sf /usr/share/misc/config.sub config.sub | 37 ln -sf /usr/share/misc/config.sub config.sub |
40 endif | 38 endif |
41 ifneq "$(wildcard /usr/share/misc/config.guess)" "" | 39 ifneq "$(wildcard /usr/share/misc/config.guess)" "" |
42 ln -sf /usr/share/misc/config.guess config.guess | 40 ln -sf /usr/share/misc/config.guess config.guess |
43 endif | 41 endif |
44 dh_auto_configure -- --enable-static LDFLAGS="-Wl,--as-needed" \ | 42 dh_auto_configure -- --enable-static LDFLAGS="-Wl,--as-needed" \ |
45 $(CONFFLAGS) | 43 $(CONFFLAGS) |
46 | 44 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 dh_installdeb -s | 124 dh_installdeb -s |
127 dh_shlibdeps -s | 125 dh_shlibdeps -s |
128 dh_gencontrol -s | 126 dh_gencontrol -s |
129 dh_md5sums -s | 127 dh_md5sums -s |
130 dh_builddeb -s | 128 dh_builddeb -s |
131 | 129 |
132 binary: binary-indep binary-arch | 130 binary: binary-indep binary-arch |
133 | 131 |
134 .PHONY: build clean binary-indep binary-arch binary install \ | 132 .PHONY: build clean binary-indep binary-arch binary install \ |
135 install-indep install-arch | 133 install-indep install-arch |
OLD | NEW |