Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # debian/rules for the Debian fontencodings 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 # set this to the name of the main shlib's binary package
11 PACKAGE = xfonts-encodings
12
13 include debian/xsfbs/xsfbs.mk
14
15 CFLAGS = -Wall -g
16 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
17 CFLAGS += -O0
18 else
19 CFLAGS += -O2
20 endif
21 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
22 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
23 MAKEFLAGS += -j$(NUMJOBS)
24 endif
25
26 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
27 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
28 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
29 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
30 confflags += --build=$(DEB_HOST_GNU_TYPE)
31 else
32 confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
33 endif
34
35
36 build: build-stamp
37 build-indep: build-stamp
38 build-stamp:
39 dh_testdir
40 autoreconf -vfi
41 mkdir -p build
42 cd build && \
43 ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
44 --infodir=\$${prefix}/share/info $(confflags) \
45 CFLAGS="$(CFLAGS)"
46 cd build && $(MAKE)
47 >$@
48
49 build-arch:
50 # Nothing to do
51
52 clean: xsfclean
53 dh_testdir
54 dh_testroot
55 rm -f build-stamp
56 rm -f config.cache config.log config.status
57 rm -f */config.cache */config.log */config.status
58 rm -f conftest* */conftest*
59 rm -rf autom4te.cache */autom4te.cache
60 rm -rf build
61 rm -f aclocal.m4 configure install-sh missing mkinstalldirs
62 rm -f config.guess config.sub
63 find -name Makefile.in -delete
64
65 dh_clean
66
67 install: build
68 dh_testdir
69 dh_testroot
70 dh_prep
71 dh_installdirs
72 cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
73
74 # Build architecture-dependent files here.
75 binary-arch: build install
76 # Nothing to do
77
78 # Build architecture-independent files here.
79 binary-indep: build install
80 dh_testdir
81 dh_testroot
82
83 dh_installdocs
84 dh_install --sourcedir=debian/tmp
85 dh_missing --list-missing
86 dh_installchangelogs
87 dh_link
88 dh_strip
89 dh_compress
90 dh_fixperms
91 dh_makeshlibs
92 dh_shlibdeps
93 dh_installdeb
94 dh_gencontrol
95 dh_md5sums
96 dh_builddeb
97
98 binary: binary-indep binary-arch
99 .PHONY: build clean binary-indep binary-arch binary install