Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # debian/rules for the Debian xbitmaps package.
3 # Copyright © 2004 Scott James Remnant <[email protected]>
4 # Copyright © 2005 Daniel Stone <[email protected]>
5 # Copyright © 2005 David Nusinow <[email protected]>
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9
10 include debian/xsfbs/xsfbs.mk
11
12 CFLAGS = -Wall -g
13 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
14 CFLAGS += -O0
15 else
16 CFLAGS += -O2
17 endif
18 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
19 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
20 MAKEFLAGS += -j$(NUMJOBS)
21 endif
22
23 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
24 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
25 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
26 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
27 confflags += --build=$(DEB_HOST_GNU_TYPE)
28 else
29 confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
30 endif
31
32
33 build: build-stamp
34 build-stamp:
35 dh_testdir
36 autoreconf -vfi
37 mkdir -p build
38 cd build && CFLAGS="$(CFLAGS)" \
39 ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
40 --infodir=\$${prefix}/share/info --sysconfdir=/etc \
41 $(confflags)
42 cd build && $(MAKE)
43 >$@
44
45 clean:
46 dh_testdir
47 rm -f build-stamp
48 rm -f config.cache config.log config.status
49 rm -f */config.cache */config.log */config.status
50 rm -f conftest* */conftest*
51 rm -rf autom4te.cache */autom4te.cache
52 rm -rf build
53 rm -f aclocal.m4 config.h.in configure install-sh missing
54 rm -f config.guess config.sub
55 find -name Makefile.in -delete
56 dh_clean
57
58 install: build
59 dh_testdir
60 dh_testroot
61 dh_clean -k
62 dh_installdirs
63
64 cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
65
66 # Build architecture-dependent files here.
67 binary-arch: build install
68 # Nothing to do
69
70 # Build architecture-independent files here.
71 binary-indep: build install
72 dh_testdir
73 dh_testroot
74
75 dh_installdocs
76 dh_install --sourcedir=debian/tmp --fail-missing
77 dh_installchangelogs ChangeLog
78 dh_installman
79 dh_link
80 dh_strip
81 dh_compress
82 dh_fixperms
83 dh_installdeb
84 dh_shlibdeps
85 dh_gencontrol
86 dh_md5sums
87 dh_builddeb
88
89 binary: binary-indep binary-arch
90 .PHONY: build clean binary-indep binary-arch binary install