| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | mandir := $(CURDIR)/debian/man |
| 4 | |
| 5 | %: |
| 6 | dh $@ --with python3 --buildsystem=pybuild |
| 7 | |
| 8 | override_dh_auto_clean: |
| 9 | dh_auto_clean |
| 10 | rm -rfv *egg-info |
| 11 | |
| 12 | override_dh_installman: |
| 13 | mkdir -p $(mandir) |
| 14 | PYTHONPATH=. help2man -N -o debian/man/icdiff.1 \ |
| 15 | -n 'terminal side-by-side colorized word diff' \ |
| 16 | --no-discard-stderr \ |
| 17 | ./icdiff |
| 18 | dh_installman -- |
| 19 | |
| 20 | override_dh_auto_test: |
| 21 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 22 | ./test.sh python3 |
| 23 | endif |