File: rules

package info (click to toggle)
latex-mk 2.1-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,988 kB
  • ctags: 243
  • sloc: sh: 4,252; makefile: 165
file content (35 lines) | stat: -rwxr-xr-x 797 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
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

%:
	dh --with autotools_dev $@

# Installation directories
debdir = $(CURDIR)/debian
debpkg = $(debdir)/latex-mk
debshr = $(debpkg)/usr/share

# Man pages
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP = xsltproc -''-nonet

%.1: debian/%.dbk
	$(XP) $(DB2MAN) $<

override_dh_auto_configure: latex-mk.1 ieee-copyout.1
	rm -f doc/texinfo.tex
	dh_auto_configure

override_dh_auto_install:
	dh_auto_install
	rm -f $(debshr)/info/dir
	rm -f $(debshr)/latex-mk/latex-mk.pdf
	rm -f $(debshr)/latex-mk/latex-mk.html

# option -i is added such that all the tests are run, without stopping at
# failures.
override_dh_auto_test:
	make check -i

override_dh_installexamples:
	mv $(debshr)/latex-mk/example $(debshr)/doc/latex-mk/examples
	dh_installexamples