File: rules

package info (click to toggle)
pysrs 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 288 kB
  • sloc: python: 1,288; sh: 72; makefile: 23
file content (21 lines) | stat: -rwxr-xr-x 596 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
#!/usr/bin/make -f

MANPAGES:=$(CURDIR)/debian/manpages/envfrom2srs.1  $(CURDIR)/debian/manpages/srs2envtol.1

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

override_dh_auto_build: $(MANPAGES)
	dh_auto_install --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install --buildsystem=pybuild
	mv $(CURDIR)/debian/tmp/usr/bin/envfrom2srs.py $(CURDIR)/debian/tmp/usr/bin/envfrom2srs
	mv $(CURDIR)/debian/tmp/usr/bin/srs2envtol.py $(CURDIR)/debian/tmp/usr/bin/srs2envtol

override_dh_auto_clean:
	dh_auto_clean --buildsystem=pybuild
	rm -f $(MANPAGES)

%.1: %.1.rst
	rst2man $< > $@