Rev 12 | Rev 47 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12 | Rev 40 | ||
---|---|---|---|
1 | #!/usr/bin/make -f |
1 | #!/usr/bin/make -f |
2 | 2 | ||
3 | export LIBTOOLIZE = libtoolize --install |
3 | export LIBTOOLIZE = libtoolize --install |
4 | 4 | ||
5 | configure: configure-stamp |
5 | configure: configure-stamp |
6 | configure-stamp: |
6 | configure-stamp: |
7 | dh_testdir |
7 | dh_testdir |
8 | [ -f debian/autoreconf.before ] || dh_autoreconf |
8 | [ -f debian/autoreconf.before ] || dh_autoreconf |
9 | ./configure \ |
9 | ./configure \ |
10 | --prefix=/usr \ |
10 | --prefix=/usr \ |
- | 11 | --without-zlib \ |
|
11 | --mandir=\$${prefix}/share/man \ |
12 | --mandir=\$${prefix}/share/man \ |
12 | $(shell dpkg-buildflags --export=configure) |
13 | $(shell dpkg-buildflags --export=configure) |
13 | touch configure-stamp |
14 | touch configure-stamp |
14 | 15 | ||
15 | build-arch: build |
16 | build-arch: build |
16 | build-indep: |
17 | build-indep: |
17 | build: build-stamp |
18 | build: build-stamp |
18 | build-stamp: configure-stamp |
19 | build-stamp: configure-stamp |
19 | dh_testdir |
20 | dh_testdir |
20 | $(MAKE) |
21 | $(MAKE) |
21 | touch build-stamp |
22 | touch build-stamp |
22 | 23 | ||
- | 24 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
|
- | 25 | $(MAKE) check |
|
- | 26 | endif |
|
- | 27 | ||
23 | clean: |
28 | clean: |
24 | dh_testdir |
29 | dh_testdir |
25 | dh_testroot |
30 | dh_testroot |
26 | # Stale build files |
31 | # Stale build files |
27 | [ ! -f Makefile ] || $(MAKE) distclean |
32 | [ ! -f Makefile ] || $(MAKE) distclean |
28 | -rm -f build-stamp configure-stamp |
33 | -rm -f build-stamp configure-stamp |
29 | dh_autoreconf_clean |
34 | dh_autoreconf_clean |
30 | dh_clean libtool configure |
35 | dh_clean libtool configure |
31 | 36 | ||
32 | install: build-stamp |
37 | install: build-stamp |
33 | dh_testdir |
38 | dh_testdir |
34 | dh_testroot |
39 | dh_testroot |
35 | dh_prep |
40 | dh_prep |
36 | 41 | ||
37 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
42 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
38 | 43 | ||
39 | binary-indep: |
44 | binary-indep: |
40 | 45 | ||
41 | binary-arch: install |
46 | binary-arch: install |
42 | dh_testdir |
47 | dh_testdir |
43 | dh_testroot |
48 | dh_testroot |
44 | dh_install --sourcedir=debian/tmp |
49 | dh_install --sourcedir=debian/tmp |
45 | 50 | ||
46 | dh_installdocs |
51 | dh_installdocs |
47 | dh_installexamples |
52 | dh_installexamples |
48 | dh_installman |
53 | dh_installman |
49 | dh_installchangelogs ChangeLog |
54 | dh_installchangelogs ChangeLog |
50 | dh_link |
55 | dh_link |
51 | dh_strip |
56 | dh_strip |
52 | dh_compress |
57 | dh_compress |
53 | dh_fixperms |
58 | dh_fixperms |
54 | dh_makeshlibs |
59 | dh_makeshlibs |
55 | dh_installdeb |
60 | dh_installdeb |
56 | dh_shlibdeps |
61 | dh_shlibdeps |
57 | dh_gencontrol |
62 | dh_gencontrol |
58 | dh_md5sums |
63 | dh_md5sums |
59 | dh_builddeb |
64 | dh_builddeb |
60 | 65 | ||
61 | binary: binary-indep binary-arch |
66 | binary: binary-indep binary-arch |
62 | .PHONY: build clean binary-indep binary-arch binary install configure |
67 | .PHONY: build clean binary-indep binary-arch binary install configure |