File: rules

package info (click to toggle)
htmlmin 0.1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 188 kB
  • sloc: python: 1,174; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 828 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

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=htmlmin

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

override_dh_auto_test:
	# the specified tests (setup.py) does not exist

override_dh_auto_install:
	dh_auto_install
	# No Python 2 cli script.
	rm -rf debian/python-htmlmin/usr/bin
	# Use the separate binary package for the cli script.
	mkdir -p debian/htmlmin/usr/bin
	mv debian/python3-htmlmin/usr/bin/htmlmin \
		debian/htmlmin/usr/bin
	rm -rf debian/python3-htmlmin/usr/bin

override_dh_installman:
	mkdir -p debian/htmlmin/usr/share/man/man1/
	PYTHONPATH=. help2man --version-string $(DEB_VERSION_UPSTREAM) \
		--no-info \
		--name "htmlmin is a configurable HTML Minifier with safety features." \
		debian/htmlmin/usr/bin/htmlmin > \
		debian/htmlmin/usr/share/man/man1/htmlmin.1