File: rules

package info (click to toggle)
mapdamage 2.0.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 384 kB
  • ctags: 122
  • sloc: python: 1,136; sh: 26; makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# DH_VERBOSE := 1
DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
TESTDIR        := debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/tests

%:
	dh $@ --with python2

override_dh_fixperms:
	dh_fixperms
	find debian -name checkLibraries.R -exec chmod +x \{\} \;
	find debian -name runGeneral.R     -exec chmod +x \{\} \;

override_dh_install:
	dh_install
	mv `find debian -name rescale_test.py` $(TESTDIR)
	sed -i 's/^import rescale/from mapdamage &/' $(TESTDIR)/rescale_test.py