File: rules

package info (click to toggle)
deken 0.9.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 648 kB
  • sloc: tcl: 2,369; sh: 415; python: 212; makefile: 33
file content (31 lines) | stat: -rwxr-xr-x 837 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

execute_after_dh_auto_build-indep: debian/requirements.txt debian/deken.1

debian/requirements.txt: developer/requirements.txt
	sed -e '/^hy.=/!s/[~=]=.*//' -e '/^pyasn/d' $^ > $@

debian/deken.1:
	-help2man -N -n "Externals wrangler for Pure Data" debian/help2man/deken > $@

execute_after_dh_fixperms:
	find debian/deken/ -type f -name "*.hy" -exec chmod a+x {} \;

execute_after_dh_clean:
	rm -f debian/requirements.txt

DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
	debian/.*|.*\.gif
# 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