File: rules

package info (click to toggle)
hamster-time-tracker 3.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,088 kB
  • sloc: python: 34,035; xml: 77; makefile: 29; sh: 23
file content (32 lines) | stat: -rwxr-xr-x 839 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
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:
	./waf distclean
	rm -rf waflib/__pycache__ waflib/Tools/__pycache__ waflib/extras/__pycache__

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

override_dh_auto_build:
	./waf build

override_dh_auto_install:
	./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