Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 SHELL+= -e
3
4 DPKG_EXPORT_BUILDFLAGS = 1
5 DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 -include /usr/share/dpkg/buildflags.mk
7
8 CFLAGS += -fno-strict-aliasing
9
10 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
11
12 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
13 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
15 CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
16 else
17 CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
18 endif
19
20 autoreconf: autoreconf-stamp
21 autoreconf-stamp:
22 dh_testdir
23 autoreconf --force --install --symlink
24 touch $@
25
26 configure: config.status
27 config.status: autoreconf-stamp
28 dh_testdir
29 ./configure $(CONFFLAGS) \
30 --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
31 --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc
32
33 build: build-arch build-indep
34 build-arch: build-stamp
35 build-indep: build-stamp
36 build-stamp: config.status
37 dh_testdir
38
39 $(MAKE)
40
41 touch $@
42
43 clean:
44 dh_testdir
45
46 [ ! -f Makefile ] || $(MAKE) distclean
47 rm -f debian/atm-tools.8 \
48 src/switch/cfg_?.[ch] src/qgen/ql_?.[ch] src/test/ispl_?.[ch] \
49 src/sigd/cfg_?.[ch] src/lane/lecs_db.c src/lane/load_lex.c \
50 aclocal.m4 autom4te.cache/* config.h.in config.h.in~ \
51 config.guess config.sub configure libtool compile \
52 INSTALL depcomp install-sh ltmain.sh missing ylwrap \
53 $$(find . -name Makefile.in)
54 $(RM) -r src/sigd/.deps
55
56 dh_clean
57
58 install: build
59 dh_testdir
60 dh_testroot
61 dh_prep
62 dh_installdirs
63
64 $(MAKE) DESTDIR=`pwd`/debian/tmp install
65
66 # manpages
67 /usr/bin/pod2man --section=8 --release="atm-tools $(PKG_VER)" --lax \
68 --center="Debian GNU/Linux" debian/atm-tools.pod > debian/atm-tools.8
69
70 # Build architecture-dependent files here.
71 binary-arch: build install
72 dh_testdir
73 dh_testroot
74 dh_install --sourcedir=debian/tmp
75 rm debian/atm-tools/usr/share/man/man8/br2684ctl.8
76 dh_installdocs --link-doc=libatm1t64
77 dh_installinit --init-script=atm
78 dh_installsystemd --name=atm
79 dh_installman
80 dh_installchangelogs ChangeLog
81 dh_link
82 dh_strip
83 dh_compress
84 dh_lintian
85 dh_fixperms
86 dh_makeshlibs -- -c4
87 dh_installdeb
88 dh_shlibdeps
89 dh_gencontrol
90 dh_md5sums
91 dh_builddeb
92
93 binary: binary-arch
94
95 .PHONY: build-arch build-indep build binary-arch binary-indep install autoreconf configure clean install