File: rules

package info (click to toggle)
dhcpig 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 120 kB
  • sloc: python: 542; makefile: 14; sh: 8
file content (23 lines) | stat: -rwxr-xr-x 743 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
#!/usr/bin/make -f

# To make debian/rules clean work even when setup.py doesn't exist
# because our patches are not applied
override_dh_auto_clean:
	[ ! -e setup.py ] || dh_auto_clean

genman:
	go-md2man -in debian/dhcpig.1.md -out debian/dhcpig.1
	echo "*** This target should not be executed automatically ***"
	echo "*** as a consequence, it always return an error      ***"
	echo "*** be sure to update the man page when the markdown ***"
	echo "*** file is updated                                  ***"
	exit 1

# using pybuild for install
# pig.py is properly named dhcpig
override_dh_install:
	dh_install
	mv $(CURDIR)/debian/dhcpig/usr/bin/pig.py $(CURDIR)/debian/dhcpig/usr/bin/dhcpig

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