File: rules

package info (click to toggle)
pcbasic 2.0.7-7
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 35,416 kB
  • sloc: python: 28,411; sh: 105; makefile: 16
file content (25 lines) | stat: -rwxr-xr-x 802 bytes parent folder | download
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
#!/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=pcbasic

%:
	dh $@ --with python3 --buildsystem=pybuild

execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep:
	PYTHONPATH=. python3 -m make docs

override_dh_auto_test:
	mkdir -p $(CURDIR)/tests/unit/output/single
	XDG_RUNTIME_DIR=`mktemp -d` screen -D -m -L -Logfile dh_auto_test.log $(CURDIR)/debian/dh_auto_test_wrapper -- --test-args="$(CURDIR)"
	cat dh_auto_test.log
	@echo 0 > dh_auto_test.cmp1
	@cmp dh_auto_test.cmp1 dh_auto_test.retval

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/tests/unit/output