File: rules

package info (click to toggle)
latex-mk 2.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,000 kB
  • sloc: sh: 4,252; makefile: 167
file content (37 lines) | stat: -rwxr-xr-x 936 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f

%:
	dh $@

# 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 -- GREP=/bin/grep ECHO=/bin/echo FALSE=/bin/false GZIP=/bin/gzip RM=/bin/rm RMDIR=/bin/rmdir TAR=/bin/tar

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:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make check -i
endif

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