File: rules

package info (click to toggle)
hamster-time-tracker 3.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,340 kB
  • sloc: python: 35,215; xml: 30; makefile: 29; sh: 23
file content (32 lines) | stat: -rwxr-xr-x 871 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
26
27
28
29
30
31
32
#!/usr/bin/make -f

%:
	dh $@ --with python3

# Note that debhelper does not support waf, so below all relevant build
# steps are overridden to run waf instead of the default autodetected
# buildsystem (setup.py probably).

override_dh_auto_clean:
	python3 ./waf distclean
	rm -rf waflib/__pycache__ waflib/Tools/__pycache__ waflib/extras/__pycache__

override_dh_auto_configure:
	python3 ./waf configure --prefix=/usr --skip-icon-cache-update --skip-gsettings

override_dh_auto_build:
	python3 ./waf build

override_dh_auto_install:
	python3 ./waf install --destdir=debian/hamster-time-tracker

override_dh_auto_test:
	# Can't run tests, need installed gsetting schema
	# python3 -m unittest tests.test_stuff

override_dh_installchangelogs:
	dh_installchangelogs NEWS.md

execute_after_dh_python3:
	# Also scan this directory for python scripts
	dh_python3 /usr/libexec