File: rules

package info (click to toggle)
tipa 19960624-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 888 kB
  • ctags: 27
  • sloc: perl: 1,636; sh: 256; makefile: 83; lisp: 14
file content (70 lines) | stat: -rwxr-xr-x 1,688 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/make -f
# -*- Makefile -*-
# File : rules
# Written by Rafael Laboissiere <rafael@icp.inpg.fr> on 1998/06/07
# rules file for Debian package tipa
# $Id$

debtexmf := $(shell pwd)/debian/tmp/usr/share/texmf

# The following pattern rules is necessary for building the TIPA
# documentation and the example 
%.dvi: %.tex
	( export TEXINPUTS=../sty: TEXFONTS=../tfm: ; \
	  latex $< ; latex $< )

docs: tipaman.dvi vowel.dvi examples-drv.dvi
	gzip -9 $^

build: build-stamp
build-stamp:
	dh_testdir
	make 
        # The following hack is necessary for making the filenames
        # lowercase, otherwise LaTeX will complain  
	( cd sty ; \
	  for i in T3* ; do \
	    cp $$i `echo $$i | perl -e 'while(<>){print lc}'` ; \
	  done )
        # This will build the documentation 
	( cd doc ; make -f ../debian/rules docs )
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-$(MAKE) clean
	rm -f sty/t3*
        # This cleans up Debian changes
	rm -f changelog doc/*.dvi.gz
	dh_clean

binary-indep: build

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) install PREFIX=$(debtexmf)
	rm -f $(debtexmf)/tex/latex/tipa/T3*.fd
        # Fixes bug reported by lintian
	chmod +x $(debtexmf)/fonts/source/public/tipa/*.sh
	cp 00README changelog
	dh_installdocs
	dh_installexamples
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_suidregister
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary