File: rules

package info (click to toggle)
icdiff 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 392 kB
  • ctags: 51
  • sloc: python: 436; sh: 106; makefile: 18
file content (30 lines) | stat: -rwxr-xr-x 701 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

mandir := $(CURDIR)/debian/man

%:
	dh $@ --with python3

override_dh_auto_clean:
	# upstream prefers a simple copy-paste install instead of setup.py
	# see https://github.com/jeffkaufman/icdiff/issues/68 and
	# https://github.com/jeffkaufman/icdiff/pull/79

override_dh_auto_build:
	# see above

override_dh_auto_install:
	mkdir -p debian/icdiff/usr/bin
	install icdiff debian/icdiff/usr/bin
	install git-icdiff debian/icdiff/usr/bin

override_dh_installman:
	mkdir -p $(mandir)
	PYTHONPATH=. help2man -N -o debian/man/icdiff.1 \
	  -n 'terminal side-by-side colorized word diff' \
	  --no-discard-stderr \
	  ./icdiff
	dh_installman --

override_dh_auto_test:
	./test.sh python3