File: rules

package info (click to toggle)
python-hjson 3.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,188 kB
  • sloc: python: 3,098; makefile: 13; sh: 8
file content (19 lines) | stat: -rwxr-xr-x 462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/make -f

export PYBUILD_NAME=hjson

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
	set -e; for build in .pybuild/cpython3_*_hjson/build; do \
		ln -sr hjson/tests/assets $$build/hjson/tests/; \
	done
	dh_auto_test
	rm .pybuild/cpython3_*_hjson/build/hjson/tests/assets

execute_after_dh_auto_install:
	# Drop the hjson tool as long as nobody asks for it
	rm \
		debian/python3-hjson/usr/bin/hjson \
		debian/python3-hjson/usr/bin/hjson.cmd