File: rules

package info (click to toggle)
hvcc 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,204 kB
  • sloc: python: 9,950; ansic: 8,687; cpp: 4,848; javascript: 709; objc: 698; cs: 344; xml: 68; makefile: 57; sh: 4
file content (27 lines) | stat: -rwxr-xr-x 773 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
#!/usr/bin/make -f

# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=hvcc
export PYBUILD_AFTER_INSTALL_python3=mv '{destdir}/usr/bin/'* '{dir}/debian/tmp/usr/bin'

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_install:
	mkdir -p debian/tmp/usr/bin

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