Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # $Id: rules,v 1.7 2008-07-23 14:28:30 roderick Exp $
4
5 dt := debian/makepatch
6 prefix = `pwd`/$(dt)
7 stamp_build := debian/stamp.build
8 stamp_install := debian/stamp.install
9 clean := $(stamp_build) $(stamp_install) t/d1/tdata2 t/d2/tdata2
10
11 ifneq "" "$(findstring debug,$(DEB_BUILD_OPTIONS))"
12 CFLAGS += -g
13 endif
14 PERL ?= perl
15
16 build: $(stamp_build)
17 $(stamp_build):
18 dh_testdir
19 $(PERL) Makefile.PL INSTALLDIRS=vendor
20 $(MAKE) OPTIMIZE="-O2 -Wall $(CFLAGS)"
21 $(MAKE) test
22 touch $@
23
24 install: $(stamp_install)
25 $(stamp_install): $(stamp_build)
26 dh_testdir
27 dh_testroot
28 dh_prep
29 dh_installdirs
30 $(MAKE) install DESTDIR=$(prefix)
31 find $(prefix) -depth -type d -print0 | \
32 xargs -0r rmdir --ignore-fail-on-non-empty
33 touch $@
34
35 clean:
36 dh_testdir
37 dh_testroot
38 [ ! -f Makefile ] || $(MAKE) realclean
39 dh_clean $(clean)
40
41 binary: binary-indep binary-arch
42 binary-arch:
43 binary-indep: $(stamp_install)
44 dh_testdir
45 dh_testroot
46 # dh_installdebconf
47 dh_installdocs
48 dh_installexamples
49 dh_installmenu
50 # dh_installlogrotate
51 # dh_installemacsen
52 # dh_installpam
53 # dh_installmime
54 # dh_installinit
55 dh_installcron
56 dh_installman
57 dh_installinfo
58 # dh_undocumented
59 dh_installchangelogs CHANGES
60 dh_link
61 dh_strip
62 dh_compress
63 dh_fixperms
64 # dh_makeshlibs
65 dh_installdeb
66 dh_perl
67 dh_shlibdeps
68 dh_gencontrol
69 dh_md5sums
70 dh_builddeb
71
72 build-arch: build
73 build-indep: build
74 .PHONY: build build-arch build-indep install clean binary-indep binary-arch binary