Debian Codegraph @

texmf-dist/source/fonts/hfoldsty/Makefile

raw
1 VERSION=`grep -A1 '\\\\ProvidesPackage' hfoldsty.dtx | grep -v '\\\\ProvidesPackage' | sed 's/.* \\(v[0-9]*\\)\\.\\([0-9]*[a-z]*\\) .*/\\1_\\2/'`
2 VERSIONpp=`grep -A1 '\\\\ProvidesPackage' ../hfoldsty.dtx | grep -v '\\\\ProvidesPackage' | sed 's/.* \\(v[0-9]*\\)\\.\\([0-9]*[a-z]*\\) .*/\\1_\\2/'`
3 INSTALL=install
4 BASEDIR=texmf
5 DOCDIR=$(BASEDIR)/doc/fonts/hfoldsty
6 STYDIR=$(BASEDIR)/tex/latex/hfoldsty
7 VFDIR=$(BASEDIR)/fonts/vf/public/hfoldsty
8 TFMDIR=$(BASEDIR)/fonts/tfm/public/hfoldsty
9 SOURCEDIR=$(BASEDIR)/source/fonts/hfoldsty
10
11 all: fonts hfoldsty.sty hfoldsty.pdf copy clean
12
13 hfoldsty.sty: hfoldsty.dtx hfoldsty.ins
14 pdflatex hfoldsty.ins
15
16 hfoldsty.pdf: hfoldsty.dtx
17 pdflatex hfoldsty.dtx
18 pdflatex hfoldsty.dtx
19 makeindex -s gglo.ist -o hfoldsty.gls hfoldsty.glo
20 pdflatex hfoldsty.dtx
21 makeindex -s gind.ist hfoldsty
22 pdflatex hfoldsty.dtx
23 pdflatex hfoldsty.dtx
24
25 fonts:
26 cd src && $(MAKE)
27
28 copy:
29 if [ -d "$(DOCDIR)" ]; then rm -f $(DOCDIR)/*; else mkdir -p $(DOCDIR); fi
30 if [ -d "$(STYDIR)" ]; then rm -f $(STYDIR)/*; else mkdir -p $(STYDIR); fi
31 if [ -d "$(VFDIR)" ]; then rm -f $(VFDIR)/*; else mkdir -p $(VFDIR); fi
32 if [ -d "$(TFMDIR)" ]; then rm -f $(TFMDIR)/*; else mkdir -p $(TFMDIR); fi
33 if [ -d "$(SOURCEDIR)" ]; then rm -rf $(SOURCEDIR)/*; else mkdir -p $(SOURCEDIR); fi
34 if [ ! -d "$(SOURCEDIR)/src" ]; then mkdir -p $(SOURCEDIR)/src; fi
35 $(INSTALL) -m644 gpl.txt README TODO ChangeLog $(DOCDIR)
36 $(INSTALL) -m644 hfoldsty.pdf hfoldsty.xml test/*.tex test/Makefile $(DOCDIR)
37 $(INSTALL) -m644 hfoldsty.sty $(STYDIR)
38 $(INSTALL) -m644 *.cpa *.fd $(STYDIR)
39 $(INSTALL) -m644 src/*.fd $(STYDIR)
40 $(INSTALL) -m644 src/*.tfm $(TFMDIR)
41 $(INSTALL) -m644 src/*.vf $(VFDIR)
42 $(INSTALL) -m755 src/generate.sh $(SOURCEDIR)/src
43 $(INSTALL) -m644 src/dostretch.mtx src/Makefile src/t19.etx src/TS1.etx $(SOURCEDIR)/src
44 $(INSTALL) -m644 hfoldsty.dtx hfoldsty.ins Makefile $(SOURCEDIR)
45
46 clean:
47 cd src && $(MAKE) clean
48 @rm -f hfoldsty.aux hfoldsty.log hfoldsty.ind hfoldsty.glo
49 @rm -f hfoldsty.gls hfoldsty.idx hfoldsty.toc hfoldsty.ilg
50
51 distclean: clean
52 cd src && $(MAKE) distclean
53 @rm -rf $(BASEDIR)
54 @rm -f *~
55 @rm -f hfo*.cpa *hfo*.fd hfoldsty.sty hfoldsty.pdf
56
57 zip: all clean distzip distclean srczip
58
59 distzip:
60 @rm -f hfoldsty-$(VERSION).zip
61 cd texmf; zip -r ../hfoldsty-$(VERSIONpp).zip *
62
63 srczip:
64 @rm -f hfoldsty-src-$(VERSION).zip
65 zip -r hfoldsty-src-$(VERSION).zip src/generate.sh src/dostretch.mtx src/Makefile src/t19.etx src/TS1.etx test/*.tex Makefile README gpl.txt hfoldsty.xml hfoldsty.dtx hfoldsty.ins ChangeLog TODO
66
67 tar: distzip srczip
68 tar cvf hfoldsty-$(VERSION).tar README ChangeLog hfoldsty.xml gpl.txt hfoldsty-$(VERSION).zip hfoldsty-src-$(VERSION).zip
69
70 version:
71 @echo $(VERSION)