File: rules

package info (click to toggle)
debmake 5.0.1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 792 kB
  • sloc: python: 2,731; sh: 214; makefile: 30
file content (17 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
# uncomment to enable verbose mode for debhelper
#DH_VERBOSE = 1

%:
	# standard package build for python script
	dh $@ --with python3 --buildsystem=pybuild

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_clean:
	# rudimentary syntax check
	for f in src/debmake/*.py ; do echo " ... testing $$f" ; python3 -m py_compile $$f || exit 1; done
	dh_auto_clean -O--buildsystem=pybuild
endif

override_dh_auto_install:
	dh_auto_install --destdir debian/debmake