Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # we want debug info for stacktrace bugreports
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6 # extra hardening works on AMD64; but breaks on armel. Be conservative.
7 CPU_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
8 ifneq (,$(findstring hardening=+all,$(DEB_BUILD_MAINT_OPTIONS)))
9 ifeq (amd64,$(CPU_ARCH))
10 export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -pie
11 endif
12 endif
13
14 # fpc(1) does not like to be run in parallel
15 %:
16 dh $@ --no-parallel
17
18 override_dh_auto_install:
19 dh_auto_install -- prefix=/usr libdir=/usr/libexec/ironseed
20
21 override_dh_auto_build:
22 # ppc64el (Bug#978153) does not have working gdc, so skip rebuild of that
23 ifneq ($(filter ppc64el, $(CPU_ARCH)),)
24 touch Data_Generators/makedata/convmake Data_Generators/makedata/logmake
25 touch data/titles.dta data/log.dta data/conv*
26 endif
27 dh_auto_build -- prefix=/usr libdir=/usr/libexec/ironseed
28
29 override_dh_installdocs:
30 rm -f debian/ironseed-data/usr/share/doc/ironseed/*.6*
31 dh_installdocs --exclude=.6
32
33 .PHONY: override_dh_auto_install override_dh_auto_build override_dh_installdocs