File: rules

package info (click to toggle)
img2pdf 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 976 kB
  • sloc: python: 10,264; sh: 39; makefile: 7
file content (15 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

# set img2pdf location for pytest run by dh_auto_test
# we cannot use the version copied by pybuild into
# .pybuild/cpython3_3.8/build because that has the executable bit removed
export img2pdfprog = $(CURDIR)/src/img2pdf.py

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

execute_before_dh_auto_clean:
	rm -f img2pdf.1

execute_after_dh_auto_build:
	help2man --no-info --name="lossless conversion of raster images to pdf" ./src/img2pdf.py | sed -e 's/\.py//ig;' > img2pdf.1