~ubuntu-branches/ubuntu/breezy/tipa/breezy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2003-12-11 10:50:58 UTC
  • Revision ID: james.westby@ubuntu.com-20031211105058-85oz671r6s5b55c9
Tags: 2:1.2-1
* New upstream release.
* debian/Makefile.patch: Removed file, since my changes have been
  included upstream.
* debian/rules: Does not patch/depatch Makefile anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- Makefile -*-
 
3
# File : rules
 
4
# Written by Rafael Laboissiere <rafael@icp.inpg.fr> on 1998/06/07
 
5
# rules file for Debian package tipa
 
6
# $Id$
 
7
 
 
8
debdir   := $(shell pwd)/debian
 
9
debtmp   := $(debdir)/tmp
 
10
debtexmf := $(debtmp)/usr/share/texmf
 
11
debxfnt  := $(debtmp)/usr/X11R6/lib/X11/fonts
 
12
debxt1   := $(debxfnt)/Type1
 
13
debxenc  := $(debxfnt)/encodings
 
14
debetc   := $(debtmp)/etc
 
15
debupdm  := $(debetc)/texmf/updmap.d
 
16
debscdir := $(debetc)/X11/fonts/Type1
 
17
 
 
18
# The following pattern rules is necessary for building the TIPA
 
19
# documentation and the example
 
20
%.dvi: %.tex
 
21
        ( export TEXINPUTS=../sty: TEXFONTS=../tfm: ; \
 
22
          latex $< ; latex $< )
 
23
 
 
24
docs: tipaman.dvi vowel.dvi
 
25
 
 
26
build: build-stamp
 
27
build-stamp:
 
28
        dh_testdir
 
29
        ( cd type1 ; \
 
30
          echo Building afm files... ; \
 
31
          for i in *.pfb ; do \
 
32
            pf2afm $$i > /dev/null ; \
 
33
            echo `basename $$i .pfb`.afm ; \
 
34
          done )
 
35
        # This will build the documentation
 
36
        ( cd doc ; make -f ../debian/rules docs )
 
37
        touch build-stamp
 
38
 
 
39
clean:
 
40
        dh_testdir
 
41
        dh_testroot
 
42
        rm -f build-stamp
 
43
        -$(MAKE) clean
 
44
        # This cleans up Debian changes
 
45
        rm -f changelog debian/tipaface.pdf
 
46
        rm -f Makefile.rej
 
47
        dh_clean
 
48
 
 
49
binary-indep: build
 
50
        dh_testdir
 
51
        dh_testroot
 
52
        dh_clean -k
 
53
        dh_installdirs
 
54
 
 
55
        $(MAKE) install PREFIX=$(debtexmf) MAPDIR=$(debetc)/texmf/dvips
 
56
        # Fixes bug reported by lintian
 
57
        chmod +x $(debtexmf)/fonts/source/fkr/tipa/*.sh
 
58
        cp 00README changelog
 
59
        ( cd $(debdir) ; uudecode tipaface.pdf.uu )
 
60
 
 
61
        dh_installdefoma -p xfonts-tipa
 
62
 
 
63
        perl debian/gen-fonts-dir.pl \
 
64
          ../../../../../share/texmf/fonts/type1/fkr/tipa \
 
65
          $(debxt1) \
 
66
          $(debscdir)/xfonts-tipa.scale \
 
67
          debian/xfonts-tipa.defoma-hints
 
68
        install --mode=644 debian/silipa.enc $(debxenc)
 
69
 
 
70
        install --mode=644 debian/tipa.updmap $(debupdm)/10tipa.cfg
 
71
 
 
72
        dh_movefiles
 
73
        # dh_movefiles does not remove empty empty dirs. Grrr....
 
74
        rmdir --ignore-fail-on-non-empty --parents \
 
75
              $(debxt1) $(debxenc) $(debscdir) $(debupdm)
 
76
 
 
77
        dh_installxfonts -p xfonts-tipa
 
78
 
 
79
        dh_installdocs
 
80
        dh_installchangelogs
 
81
        dh_compress
 
82
        dh_fixperms
 
83
        dh_installdeb
 
84
 
 
85
        dh_gencontrol
 
86
        dh_md5sums
 
87
        dh_builddeb
 
88
 
 
89
binary: binary-indep
 
90
.PHONY: build clean binary-indep binary