File: rules

package info (click to toggle)
dash 0.5.12-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,148 kB
  • sloc: ansic: 13,410; sh: 1,414; makefile: 78; perl: 36
file content (41 lines) | stat: -rwxr-xr-x 1,031 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

# output every command that modifies files on the build system.
#DH_VERBOSE = 1

DEB_BUILD_MAINT_OPTIONS =hardening=+all

include /usr/share/dpkg/architecture.mk

ifeq ($(DEB_HOST_ARCH_OS),hurd)
DEB_CPPFLAGS_MAINT_APPEND = -DPATH_MAX=4096
endif

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

ifneq (,$(findstring diet,$(DEB_BUILD_OPTIONS)))
  CC =diet -v -Os gcc
  CFLAGS =-nostdinc -Wall
  CPPFLAGS =
  LDFLAGS =
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-fnmatch \
		--disable-lineno \
		--disable-glob

execute_before_dh_gencontrol:
	# dh_installdebconf will add a dependency on debconf to
	# ${misc:Depends} because of the presence of ./debian/dash.templates
	# Since the preinst snippet has fallback code for when debconf is not
	# available, that extra dependency is not needed.
	# FIXME: remove this after Trixie together with the preinst
	sed -i '/^misc:Depends=/s/debconf[^,]*[, ]*//' debian/dash.substvars

.PHONY: override_dh_auto_configure