File: rules

package info (click to toggle)
presto 0.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 948 kB
  • sloc: python: 7,682; sh: 85; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 597 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export PYBUILD_NAME=presto
export PYBUILD_BEFORE_TEST=cp -r {dir}/bin {build_dir};
export PYBUILD_AFTER_TEST=rm -rvf {build_dir}/bin;

ifeq ($(filter $(DEB_BUILD_ARCH), amd64 arm64 kfreebsd-amd64 ppc64el),)
export PYBUILD_BEFORE_TEST+=rm {dir}/tests/test_ClusterSets.py || \
			echo "Test file already removed or moved";
endif

%:
	dh $@ --buildsystem=pybuild

override_dh_install:
	dh_install
	mkdir -p debian/$(PYBUILD_NAME)/usr
	mv debian/python3-$(PYBUILD_NAME)/usr/bin debian/$(PYBUILD_NAME)/usr

override_dh_installman:
	dh_installman --language=C