File: rules

package info (click to toggle)
phasex 0.14.97-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 12,432 kB
  • sloc: ansic: 27,211; sh: 8,278; makefile: 386; perl: 201
file content (26 lines) | stat: -rwxr-xr-x 663 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

ifneq (,$(findstring amd64,$(DEB_HOST_ARCH)))
DEB_CONFIGURE_FLAGS_EXTRA=--enable-arch=amd64
endif

export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_FLAGS_EXTRA)

override_dh_auto_install:
	dh_auto_install
	cd $(CURDIR)/debian/phasex/usr/share/phasex && \
		rm compile depcomp install-sh missing version-sh
	cd $(CURDIR)/debian/phasex/usr/share/doc/phasex && \
		rm LICENSE ChangeLog GPL-3.0.txt

override_dh_strip:
	dh_strip --dbgsym-migration='phasex-dbg (<< 0.14.97-3~)'