8f3c79753ecfcc4ead9e23583d24b5f79a68cc3b
[pkg/mmv.git] / debian / rules
1 #! /usr/bin/make -f
2
3 DPKG_EXPORT_BUILDFLAGS = 1
4 include /usr/share/dpkg/buildflags.mk
5
6 build: build-arch build-indep
7 build-arch: build-stamp
8 build-indep: build-stamp
9 build-stamp:
10 # Builds the binary package.
11         dh_testdir
12         $(MAKE) CC="$(CC)" LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"
13         touch build
14
15 clean:
16 # Undoes the effect of `make -f debian/rules build'.
17         dh_testdir
18         dh_auto_clean
19         dh_clean build debian/substvars
20
21 binary: binary-arch binary-indep
22
23 binary-indep:
24         dh_testdir
25
26 binary-arch: build
27         dh_testdir
28 # Makes a binary package.
29         dh_installdirs
30         dh_auto_install
31         dh_strip
32         dh_link
33         dh_installdocs
34         dh_installchangelogs
35         dh_compress
36         dh_lintian
37         dh_fixperms
38         dh_shlibdeps
39         dh_gencontrol
40         dh_md5sums
41         dh_builddeb