File: rules

package info (click to toggle)
img2pdf 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 948 kB
  • sloc: python: 10,197; sh: 39; makefile: 8
file content (18 lines) | stat: -rwxr-xr-x 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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

# skip tests so that we can test autopkgtest
override_dh_auto_test: