File: rules

package info (click to toggle)
latexdiff 1.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,192 kB
  • ctags: 211
  • sloc: perl: 6,346; sh: 116; makefile: 59; python: 34
file content (22 lines) | stat: -rwxr-xr-x 574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%.1: %
	pod2man $< $@

%:
	dh $@

override_dh_auto_build: latexdiff.1  latexdiff-vc.1  latexrevise.1 latexdiff-man.pdf

override_dh_auto_install:
	# ignore install target from new upstream Makefile

latexdiff-man.pdf: doc/latexdiff-man.tex debian/Makefile.manual
	make -f debian/Makefile.manual latexdiff-man.pdf

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#! /bin/env python|#!/usr/bin/python|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/contrib/latexchanges.py