File: rules

package info (click to toggle)
python-ethtool 0.12-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 372 kB
  • ctags: 537
  • sloc: ansic: 1,587; python: 1,268; makefile: 38
file content (20 lines) | stat: -rwxr-xr-x 560 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

override_dh_auto_build:
	dh_auto_build --buildsystem python_distutils
	cp -p pethtool.py pethtool
	cp -p pifconfig.py pifconfig
	a2x -d manpage -f manpage man/pethtool.8.asciidoc
	a2x -d manpage -f manpage man/pifconfig.8.asciidoc

clean:
	if [ -f setup.py ]; then dh $@ --buildsystem python_distutils --with python2; fi
	#rm -f setup.py
	rm -f setup.cfg pethtool pifconfig man/pethtool.8 man/pifconfig.8
	rm -rf build

%:
	dh $@ --buildsystem python_distutils --with python2