File: rules

package info (click to toggle)
mathpartir 1.1.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 264 kB
  • ctags: 1
  • sloc: sh: 56; makefile: 35
file content (45 lines) | stat: -rwxr-xr-x 949 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/make -f
# debian/rules for mathpartir

#export DH_VERBOSE=1
include /usr/share/dpatch/dpatch.make
INST=debian/mathpartir

build: patch
	dh_testdir
	hevea -fix mathpartir.tex

clean: unpatch
	dh_testdir
	dh_testroot
	dh_clean 
	-rm -f mathpartir.{html,htoc,haux}

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs
	cp mathpartir.sty $(INST)/usr/share/texmf/tex/latex/mathpartir
	cp mathpartir.tex $(INST)/usr/share/doc/texmf/latex/mathpartir
	cp mathpartir.hva $(INST)/usr/share/hevea
	gzip mathpartir.dvi --stdout > \
		$(INST)/usr/share/doc/texmf/latex/mathpartir/mathpartir.dvi.gz

binary-arch: build install

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs mathpartir.html
	dh_compress
	dh_fixperms
	dh_link
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch