File: rules

package info (click to toggle)
ironseed 0.3.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 10,812 kB
  • sloc: pascal: 27,286; ansic: 1,005; makefile: 289; perl: 277; sh: 209
file content (33 lines) | stat: -rwxr-xr-x 1,077 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
#!/usr/bin/make -f

# we want debug info for stacktrace bugreports
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# extra hardening works on AMD64; but breaks on armel. Be conservative.
CPU_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
ifneq (,$(findstring hardening=+all,$(DEB_BUILD_MAINT_OPTIONS)))
ifeq (amd64,$(CPU_ARCH))
export LDFLAGS += -pie
endif
endif

# fpc(1) does not like to be run in parallel
%:
	dh $@ --no-parallel

override_dh_auto_install:
	dh_auto_install -- prefix=/usr libdir=/usr/libexec/ironseed

override_dh_auto_build:
# ppc64el (Bug#978153) and mipsel (Bug#980204) do not have working gdc, so skip rebuild of that
ifneq ($(filter ppc64el mipsel, $(CPU_ARCH)),)
	touch Data_Generators/makedata/convmake Data_Generators/makedata/logmake
	touch data/titles.dta data/log.dta data/conv*
endif
	dh_auto_build -- prefix=/usr libdir=/usr/libexec/ironseed

override_dh_installdocs:
	rm -f debian/ironseed-data/usr/share/doc/ironseed/*.6*
	dh_installdocs --exclude=.6

.PHONY: override_dh_auto_install override_dh_auto_build override_dh_installdocs