File: rules

package info (click to toggle)
denemo 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 53,500 kB
  • ctags: 9,731
  • sloc: ansic: 80,323; lisp: 33,381; xml: 15,377; sh: 11,905; makefile: 1,116
file content (37 lines) | stat: -rwxr-xr-x 972 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Use all hardening features
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Avoid linking with unneeded libs
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

ifneq ($(DEB_HOST_ARCH_OS),linux)
TMPCONF_OPTS= --enable-portmidi=no
else
TMPCONF_OPTS= --enable-portmidi=yes
endif

%:
	dh $@ --no-parallel

TMPHOME := $(shell mktemp --tmpdir --directory denemo-build.XXXXXXXXXX)
export XDG_RUNTIME_DIR=$(TMPHOME)/xdg-rundir

override_dh_autoreconf:
	dh_autoreconf
	intltoolize --copy --force --automake

override_dh_auto_configure:
	dh_auto_configure -- $(TMPCONF_OPTS)

override_dh_auto_test:
ifneq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),s390x hurd-i386))
	mkdir -p $(TMPHOME)/xdg-runtime-dir
	chmod 0700 $(TMPHOME)/xdg-runtime-dir
	GUILE_AUTO_COMPILE=0 VERBOSE=1 dh_auto_test
endif
	rm -rf $(TMPHOME)