]> git.deb.at Git - pkg/mmv.git/blob - debian/rules
Remove further no more necessary stuff from debian/rules
[pkg/mmv.git] / debian / rules
1 #! /usr/bin/make -f
2
3 LDFLAGS =
4 CFLAGS = -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
5
6
7 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
8     CFLAGS += -O0
9 else
10     CFLAGS += -O2
11 endif
12
13 ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
14     LDFLAGS += -s
15 endif
16
17 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
18     NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
19     MAKEFLAGS += -j$(NUMJOBS)
20 endif
21
22 build:
23 # Builds the binary package.
24         dh_testdir
25         $(MAKE) CC="$(CC)" LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"
26         touch build
27
28 clean:
29 # Undoes the effect of `make -f debian/rules build'.
30         dh_testdir
31         dh_auto_clean
32         dh_clean build debian/substvars
33
34 binary: binary-arch binary-indep
35
36 binary-indep:
37         dh_testdir
38
39 binary-arch: build
40         dh_testdir
41 # Makes a binary package.
42         dh_installdirs
43         dh_auto_install
44         dh_strip
45         dh_link
46         dh_installdocs
47         dh_installchangelogs
48         dh_compress
49         dh_lintian
50         dh_fixperms
51         dh_shlibdeps
52         dh_gencontrol
53         dh_md5sums
54         dh_builddeb