Fix double build by calling "touch build-stamp" after the build
[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         dh_testdir
11         dh_auto_build -- LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS) -DIS_SYSV -DHAS_DIRENT -DHAS_RENAME"
12         touch build-stamp
13
14 clean:
15         dh_testdir
16         dh_auto_clean
17         dh_clean
18
19 binary: binary-arch binary-indep
20 binary-indep:
21         dh_testdir
22
23 binary-arch: build
24         dh_testdir
25         dh_installdirs
26         dh_auto_install
27         dh_strip
28         dh_link
29         dh_installdocs
30         dh_installchangelogs
31         dh_compress
32         dh_lintian
33         dh_fixperms
34         dh_shlibdeps
35         dh_gencontrol
36         dh_md5sums
37         dh_builddeb