Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- mode: makefile; coding: utf-8 -*-
3 # Copyright © 2008 Rafael Laboissiere <[email protected]>
4
5 include /usr/share/dpkg/pkg-info.mk
6
7 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8 DPKG_EXPORT_BUILDFLAGS = 1
9 include /usr/share/dpkg/buildflags.mk
10
11 export AUTOMAKE = automake --foreign --add-missing
12 SAVE_FILES = Makefile src/Makefile ann2fig/Makefile sample/Makefile test/Makefile
13
14 %:
15 dh $@
16
17 override_dh_autoreconf:
18 # Save upstream Makefiles
19 for f in $(SAVE_FILES) ; do \
20 if [ ! -f $$f-orig ] ; then mv $$f $$f-orig ; fi \
21 done
22 debian/cctbx
23 dh_autoreconf
24
25 override_dh_clean:
26 # Restore upstream Makefiles
27 for f in $(SAVE_FILES) ; do \
28 if [ -f $$f-orig ] ; then mv $$f-orig $$f ; fi \
29 done
30 dh_clean
31 -rm ann-cctbx
32
33 override_dh_installman: debian/ann2fig.1 debian/ann_sample.1 debian/ann_test.1
34 dh_installman
35
36 %.1: %.pod
37 pod2man --center="User Commands" --release="ANN $(DEB_VERSION_UPSTREAM)" $< > $@
38
39 override_dh_auto_test:
40 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
41 ( cd test ; \
42 ./ann_test < test1.in > /dev/null \
43 ./ann_test < test2.in > /dev/null )
44 endif
45 dh_auto_test
46
47 override_dh_compress:
48 dh_compress -X.pdf