Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # output every command that modifies files on the build system.
4 #DH_VERBOSE = 1
5
6 DEB_BUILD_MAINT_OPTIONS =hardening=+all
7
8 include /usr/share/dpkg/architecture.mk
9
10 ifeq ($(DEB_HOST_ARCH_OS),hurd)
11 DEB_CPPFLAGS_MAINT_APPEND = -DPATH_MAX=4096
12 endif
13
14 DPKG_EXPORT_BUILDFLAGS = 1
15 include /usr/share/dpkg/buildflags.mk
16
17 ifneq (,$(findstring diet,$(DEB_BUILD_OPTIONS)))
18 CC =diet -v -Os gcc
19 CFLAGS =-nostdinc -Wall
20 CPPFLAGS =
21 LDFLAGS =
22 endif
23
24 %:
25 dh $@
26
27 override_dh_auto_configure:
28 dh_auto_configure -- \
29 --disable-fnmatch \
30 --disable-lineno \
31 --disable-glob
32
33 execute_before_dh_gencontrol:
34 # dh_installdebconf will add a dependency on debconf to
35 # ${misc:Depends} because of the presence of ./debian/dash.templates
36 # Since the preinst snippet has fallback code for when debconf is not
37 # available, that extra dependency is not needed.
38 # FIXME: remove this after Trixie together with the preinst
39 sed -i '/^misc:Depends=/s/debconf[^,]*[, ]*//' debian/dash.substvars
40
41 .PHONY: override_dh_auto_configure