File: rules

package info (click to toggle)
htmlgen 2.2.2-12.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,840 kB
  • ctags: 1,480
  • sloc: python: 4,518; makefile: 93
file content (49 lines) | stat: -rwxr-xr-x 1,238 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

exe_scripts = HTMLcalendar.py HTMLutil.py barchart.py colorcube.py

PYVERS := $(shell pyversions -r)

build:
	dh_testdir
	chmod -x *H.py
	touch build

clean:
	dh_testdir
	-rm -f build
	-find . -name '*.py[co]' | xargs rm -f
	dh_clean

binary-indep: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	set -e; \
	for py in $(PYVERS); do                  \
	    mkdir -p debian/python-htmlgen/usr/lib/$$py/site-packages/HTMLgen;     \
	    $(MAKE) debinstall                   \
	        PYLIBDIR=debian/python-htmlgen/usr/lib/$$py/site-packages/HTMLgen; \
	    install -m 644 debian/HTMLgen.pth    \
	        debian/python-htmlgen/usr/lib/$$py/site-packages/; \
	done
	dh_installdocs -A README HTML.rc HTMLgen.rc appt.txt
	dh_installdocs -ppython-htmlgen data html image
	dh_installexamples -A -ppython-htmlgen HTMLtest.py StickyForm.py
	dh_installchangelogs ChangeLog
	dh_fixperms
	dh_pysupport
	dh_compress -X.py -X.jpg
	dh_installdeb
	dh_gencontrol
	dh_installexamples
	dh_md5sums
	dh_builddeb

binary-arch: build

binary:	binary-indep binary-arch
.PHONY: binary binary-indep clean