File: rules

package info (click to toggle)
pd-lua 0.12.23%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,676 kB
  • sloc: ansic: 3,720; lisp: 66; makefile: 64
file content (36 lines) | stat: -rwxr-xr-x 1,143 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
#!/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

pkglibdir = /usr/lib/pd/extra

DATE_FMT = compiled for Debian on %Y/%m/%d at %H:%M:%S UTC
ifdef SOURCE_DATE_EPOCH
    BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || date -u "+$(DATE_FMT)")
else
    BUILD_DATE ?= $(shell date "+$(DATE_FMT)")
endif

DEB_CPPFLAGS_MAINT_APPEND = -DBUILD_DATE="$(BUILD_DATE)"

%:
	dh $@ --buildsystem=pd_lib_builder

override_dh_auto_build:
	dh_auto_build -- pdlua_version="$(DEB_VERSION)"


DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
	debian/.*|tutorial/.*\.(png|gif)|pdlua/examples/osci3d/osci3d~\.png
# 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