File: rules

package info (click to toggle)
trydiffoscope 67.0.8
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 80 kB
  • sloc: python: 101; makefile: 14; sh: 2
file content (23 lines) | stat: -rwxr-xr-x 424 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

SETUP_PY_VERSION := $(shell python3 setup.py --version)

ifneq ($(DEB_VERSION),$(SETUP_PY_VERSION))
$(error Version in debian/changelog does not match setup.py)
endif

MANPAGES = trydiffoscope.1

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

%.1: %.1.rst
	rst2man $< $@

override_dh_auto_clean:
	rm -f $(MANPAGES)

override_dh_auto_build: $(MANPAGES)
	dh_auto_build