Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no")
4
5 export DEB_CFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS)
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7
8 %:
9 dh $@
10
11 override_dh_auto_configure:
12 # AC_PROG_GREP will look for binaries in PATH and thus find
13 # /usr/bin/foo before /bin/foo on merged-usr systems.
14 # Thus building binaries that won't work on non-merged systems.
15 # Explicitly set the path to avoid that.
16 CAT=/bin/cat CURL=/usr/bin/curl GREP=/bin/grep GZIP=/bin/gzip SH=/bin/bash WGET=/usr/bin/wget \
17 LIB_CUPS=/usr/lib/cups \
18 dh_auto_configure
19
20 override_dh_auto_build:
21 dh_auto_build -- PERL_INSTALLDIRS=vendor
22
23 execute_after_dh_install:
24 install -D -m 644 debian/foomatic-db-engine.ppd-updater $(CURDIR)/debian/foomatic-db-engine/usr/share/cups/ppd-updaters/foomatic-db-engine
25
26 # Install the apport hook on Ubuntu and derivatives
27 ifeq ($(derives_from_ubuntu),yes)
28 install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/foomatic-db-engine/usr/share/apport/package-hooks/source_foomatic-db-engine.py
29 endif