File: rules

package info (click to toggle)
kineticstools 0.6.1%2B20161222-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 118,220 kB
  • ctags: 560
  • sloc: python: 3,960; makefile: 185; ansic: 129; xml: 19; sh: 16
file content (29 lines) | stat: -rwxr-xr-x 893 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
24
25
26
27
28
29
#!/usr/bin/make -f

#DH_VERBOSE = 1
include /usr/share/dpkg/default.mk

export LC_ALL=C.UTF-8
export PYBUILD_NAME=kineticstools
export PYBUILD_TEST_NOSE=1
export NOSE_VERBOSE=2
export NOSE_NOCAPTURE=1
export NOSE_INCLUDE_EXE=1
export NOSE_TESTS=$(shell ls $(CURDIR)/test/*.py | tr '[:space:]' ',')
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

INSTDIR = $(CURDIR)/debian/$(DEB_SOURCE)
BINDIR = $(INSTDIR)/usr/bin
MANDIR = $(INSTDIR)/usr/share/man/

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

override_dh_auto_install:
	dh_auto_install
	mkdir -p $(BINDIR)
	mv debian/python-kineticstools/usr/bin/* $(BINDIR)
	mkdir -p $(MANDIR)/man1
	rst2man doc/manual.rst > $(MANDIR)/man1/ipdSummary.1
	mkdir -p debian/kineticstools-data/usr/share/kineticstools
	mv debian/python-kineticstools/usr/lib/python2.7/dist-packages/kineticsTools/resources debian/kineticstools-data/usr/share/kineticstools/