Code

Do not compress PDF files.
[pkg-tig.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/ruls for tig
3 #
4 # Written by Sebastian Harl <sh@tokkee.org>
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 CFLAGS = -Wall -g
11 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
12         CFLAGS += -O0
13 else
14         CFLAGS += -O2
15 endif
17 include /usr/share/dpatch/dpatch.make
19 build: build-stamp
21 build-stamp: patch
22         dh_testdir
23         
24         CFLAGS="$(FLAGS)" $(MAKE) all doc
25         
26         touch build-stamp
28 clean: unpatch
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp
32         
33         -$(MAKE) clean
34         
35         dh_clean 
37 install: build
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         dh_installdirs
42         
43         $(MAKE) install install-doc DESTDIR=$(CURDIR)/debian/tig \
44                         prefix=/usr mandir=/usr/share/man
46 binary-indep:
47         # nothing to do here
49 binary-arch: build install
50         dh_testdir
51         dh_testroot
52         dh_installchangelogs
53         dh_installdocs BUGS TODO manual.pdf
54         dh_installexamples tigrc
55         dh_link
56         dh_strip
57         dh_compress -X.pdf
58         dh_fixperms
59         dh_installdeb
60         dh_shlibdeps
61         dh_gencontrol
62         dh_md5sums
63         dh_builddeb
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install patch unpatch