Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # GNU copyright 1997 to 1999 by Joey Hess.
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 # These are used for cross-compiling and for saving the configure script
8 # from having to guess our platform (since we know it already)
9 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11
12 DPKG_EXPORT_BUILDFLAGS=1
13 include /usr/share/dpkg/buildflags.mk
14
15 CFLAGS += $(CPPFLAGS)
16
17 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
18 INSTALL_PROGRAM += -s
19 endif
20
21 config.status: configure
22 dh_testdir
23
24 if [ ! -f config.sub.save ]; then cp config.sub config.sub.save ; fi
25 if [ ! -f config.guess.save ]; then cp config.guess config.guess.save ; fi
26
27 -test -r /usr/share/misc/config.sub && \
28 cp -f /usr/share/misc/config.sub config.sub
29 -test -r /usr/share/misc/config.guess && \
30 cp -f /usr/share/misc/config.guess config.guess
31
32 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-shm=IPCSHM
33
34
35 build: build-arch build-indep
36 build-indep:
37
38 build-arch: build-stamp
39 build-stamp: config.status
40 dh_testdir
41
42 $(MAKE)
43 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
44 ./mm_test
45 endif
46
47 touch build-stamp
48
49 clean:
50 dh_testdir
51 dh_testroot
52 rm -f build-stamp config.log
53
54 if [ -f Makefile ]; then $(MAKE) distclean ; fi
55
56 -test -r config.sub.save && \
57 mv config.sub.save config.sub
58 -test -r config.guess.save && \
59 mv config.guess.save config.guess
60
61 dh_clean
62
63 install: build
64 dh_testdir
65 dh_testroot
66 dh_prep
67 dh_installdirs
68
69 $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
70
71
72 # Build architecture-independent files here.
73 binary-indep: build install
74 # We have nothing to do by default.
75
76 # Build architecture-dependent files here.
77 binary-arch: build install
78 dh_testdir
79 dh_testroot
80 dh_install --sourcedir=debian/tmp
81
82 dh_installdocs
83 dh_installexamples
84 dh_installman
85 dh_installchangelogs ChangeLog
86 dh_link
87 dh_strip --dbgsym-migration="libmm-dbg (<< 1.4.2-6~)"
88 dh_compress
89 dh_fixperms
90 dh_makeshlibs
91 dh_installdeb
92 dh_shlibdeps
93 dh_gencontrol
94 dh_md5sums
95 dh_builddeb
96
97 binary: binary-indep binary-arch
98 .PHONY: build clean binary-indep binary-arch binary install