Code

Minor style enhancements in rules.
[pkg-src2tex.git] / debian / rules
1 #!/usr/bin/make -f
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
6 CFLAGS = -Wall -g
7 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
8         CFLAGS += -O0
9 else
10         CFLAGS += -O2
11 endif
13 build: build-stamp
14 build-stamp:
15         dh_testdir
16         
17         $(MAKE) CFLAGS="$(CFLAGS)"
18         
19         touch build-stamp
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp
25         
26         $(MAKE) clean
27         
28         dh_clean
30 install: build
31         dh_testdir
32         dh_testroot
33         dh_clean -k
34         dh_installdirs
35         dh_install
37 # Build architecture-independent files here.
38 binary-indep: build install
40 # Build architecture-dependent files here.
41 binary-arch: build install
42         dh_testdir
43         dh_testroot
44         dh_installchangelogs
45         dh_installdocs
46         dh_installexamples
47         dh_installman
48         dh_link
49         dh_strip
50         dh_compress -Xexamples
51         dh_fixperms
52         dh_installdeb
53         dh_shlibdeps
54         dh_gencontrol
55         dh_md5sums
56         dh_builddeb
58 binary: binary-indep binary-arch
59 .PHONY: build clean binary-indep binary-arch binary install