File: rules

package info (click to toggle)
scour 0.38.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,408 kB
  • sloc: python: 5,152; makefile: 49; perl: 35; sh: 17
file content (30 lines) | stat: -rwxr-xr-x 796 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
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_clean:
	rm -f debian/dh_scour.1 debian/scour.1

execute_after_dh_auto_build:
	pod2man debian/dh_scour debian/dh_scour.1

execute_before_dh_installman:
	PYTHONPATH="." \
	help2man --no-info \
		--include debian/manpage_snippets \
		--output debian/scour.1  \
		--no-discard-stderr \
		--name "Optimize and clean SVG files" \
		"debian/scour/usr/bin/scour"
	# Remove version line from --help output and the Copyright
	# statement that we reproduce via debian/manpage_snippets
	# in the correct section
	sed -i "/^scour [0-9]/d; /^Copyright Jeff/d" debian/scour.1

execute_after_dh_auto_test:
	for p in $$(py3versions -s); do \
	  echo "Running tests with $$p..."; \
	  $$p ./test_css.py; \
	  $$p ./test_scour.py; \
	done