Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
7
8 CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
9 LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
10 CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS)
11
12 configure: configure.ac
13 dh_autoreconf
14
15 config.status: configure
16 dh_testdir
17 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \
18 ./configure --host=$(DEB_HOST_GNU_TYPE) \
19 --build=$(DEB_BUILD_GNU_TYPE) \
20 --prefix=/usr \
21 --mandir=\$${prefix}/share/man \
22 --infodir=\$${prefix}/share/info
23
24
25 build: build-arch build-indep
26 build-arch: build-stamp
27 # no depends (no arch-indep package)
28 build-indep:
29
30 build-stamp: config.status
31 dh_testdir
32 $(MAKE)
33 touch build-stamp
34
35 clean:
36 dh_testdir
37 dh_testroot
38 if [ -e Makefile ]; then \
39 $(MAKE) distclean; \
40 else \
41 echo "No Makefile for distclean"; \
42 touch configure.ac; \
43 fi
44 dh_autoreconf_clean
45 $(RM) -f Makefile.in aclocal.m4 config.h.in configure compile build-stamp
46 dh_clean
47
48 install: build
49 dh_testdir
50 dh_testroot
51 dh_prep
52 dh_installdirs
53 $(MAKE) install DESTDIR=$(CURDIR)/debian/printer-driver-min12xxw
54 # Install Apport hook (only on Ubuntu and derivatives)
55 if dpkg-vendor --derives-from ubuntu; then \
56 install -D -m 644 debian/local/apport-hook.py $(CURDIR)/debian/printer-driver-min12xxw/usr/share/apport/package-hooks/source_min12xxw.py; \
57 fi
58
59 # no depends (no arch-indep package)
60 binary-indep:
61
62 binary-arch: build install
63 dh_testdir
64 dh_testroot
65 dh_installchangelogs -p printer-driver-min12xxw ChangeLog
66 dh_installdocs
67 dh_installman
68 dh_link
69 dh_strip
70 dh_compress
71 dh_fixperms
72 dh_installdeb
73 dh_shlibdeps
74 dh_gencontrol
75 dh_md5sums
76 dh_builddeb
77
78 binary: binary-indep binary-arch
79 .PHONY: build clean \
80 binary-indep \
81 binary-arch \
82 binary \
83 install \
84 build-arch \
85 build-indep