File: rules

package info (click to toggle)
pd-pmpd 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,496 kB
  • sloc: ansic: 30,836; makefile: 31; sh: 6
file content (47 lines) | stat: -rwxr-xr-x 1,412 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
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f
# Copyright © 2010 Hans-Christoph Steiner <hans@eds.org>
# Copyright © 2018 IOhannes m zmölnig <umlaeute@debian.org>

#enable hardening
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

FLAVORS = single double
builddir=debian/build/flavor-

CONFIG = -DCMAKE_INSTALL_PREFIX=/usr/lib/pd/extra -DPUREDATA_ARCH_SUFFIX=$(shell dpkg-architecture -qDEB_HOST_ARCH)

## per flavor configure options
CONFIG_single =
CONFIG_double = -DPUREDATA_FLOATSIZE=64

%:
	dh $@

override_dh_auto_configure: $(patsubst %,configure_%,$(FLAVORS))
override_dh_auto_build-arch: $(patsubst %,build_%,$(FLAVORS))
override_dh_auto_install: $(patsubst %,install_%,$(FLAVORS))

configure_%:
	$(info $()   debian/rules $@)
	mkdir -p $(builddir)$*
	dh_auto_configure --builddirectory=$(builddir)$* -- $(strip $(CONFIG) $(CONFIG_$*))
build_%:
	$(info $()  debian/rules $@)
	dh_auto_build -a  --builddirectory=$(builddir)$*
install_%:
	$(info $()  debian/rules $@)
	dh_auto_install   --builddirectory=$(builddir)$*



DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
        debian/.*|manual/pm_pmpd_and_expressive_mvt_synthesis\..*
# licensecheck v1
.PHONY: licensecheck
licensecheck:
	LANG=C.UTF-8 licensecheck \
		-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
		--check '.*' --recursive --deb-machine --lines 0 * \
		> debian/copyright_newhints
	cmp debian/copyright_hints debian/copyright_newhints \
		&& rm debian/copyright_newhints