File: rules

package info (click to toggle)
ptpd 2.3.1-debian1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,920 kB
  • ctags: 2,657
  • sloc: ansic: 22,012; sh: 11,581; makefile: 122; sed: 12
file content (20 lines) | stat: -rwxr-xr-x 579 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
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf

override_dh_auto_clean:
	[ ! -f src/Makefile ] || make -C src clean

override_dh_auto_build:
	dh_auto_build -- -C src \
		CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \
		CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" \
		LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)"

override_dh_auto_install:
	dh_auto_install
	cp src/ptpd2.8 debian/ptpd/usr/share/man/man8/ptpd.8
	rm debian/ptpd/usr/share/man/man8/ptpd2.8
	cp src/ptpd2.conf.5 debian/ptpd/usr/share/man/man5/ptpd.conf.5
	rm debian/ptpd/usr/share/man/man5/ptpd2.conf.5