File: rules

package info (click to toggle)
parsnp 1.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,280 kB
  • ctags: 560
  • sloc: cpp: 3,859; python: 1,243; ansic: 937; makefile: 22; sh: 21
file content (23 lines) | stat: -rwxr-xr-x 677 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python2 --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --with-libmuscle=/usr/include/libMUSCLE-3.7

override_dh_auto_install:
	dh_auto_install
	# The actual user interface is the Python script so move the binary to /usr/lib
	mkdir -p debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)
	mv debian/$(DEBPKGNAME)/usr/bin/$(DEBPKGNAME) debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)

override_dh_fixperms:
	dh_fixperms
	chmod -x debian/$(DEBPKGNAME)/usr/share/$(DEBPKGNAME)/template.ini