summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/bgteubner/Makefile.source
blob: 772c029bf0b3812a0f742f4a645f6d63eac6996b (plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
## bgteubner class bundle
##
## Makefile
## Copyright 2003--2008 Harald Harders
#
# This program may be distributed and/or modified under the
# conditions of the LaTeX Project Public License, either version 1.3
# of this license or (at your opinion) any later version.
# The latest version of this license is in
#    http://www.latex-project.org/lppl.txt
# and version 1.3 or later is part of all distributions of LaTeX
# version 1999/12/01 or later.
#
# This program consists of all files listed in manifest.txt.

SRCDIR=bgteubner
INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/bgteubner
PTMXCOMPDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/ptmxcomp
DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/bgteubner
IDXDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/makeindex/bgteubner
BSTDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/bibtex/bst/bgteubner
VERSION=`latex getversion | grep '^VERSION' | sed 's/^VERSION \\(.*\\)\\.\\(.*\\)/\\1_\\2/'`

.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf .cls .bst .ist

.ins.cls:
	latex $<

.dtx.pdf:
	pdflatex $<
	pdflatex $<
	makeindex -s gind.ist $(*D)/$(*F)
	makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
	pdflatex $<
	cp $(*D)/$(*F).pdf ../doc/

.dvi.ps:
	dvips -o $(*D)/$(*F).ps $(*D)/$(*F)


all: bgteubner.cls bgteucls.pdf cdcover.pdf

bgteubner.cls: bgteucls.ins bgteucls.dtx
	latex bgteucls.ins

bgteucls.pdf: bgteucls.dtx bgteucls.ins

cdcover.pdf: cdcover.tex
	@if [ "`kpsewhich cd-cover.sty`" ]; then pdflatex cdcover; fi

clean:
	@-rm -f bgteucls.glo bgteucls.gls bgteucls.idx bgteucls.ilg
	@-rm -f bgteucls.ind bgteucls.aux bgteucls.log bgteucls.toc
	@-rm -f bgteucls.dvi getversion.log
	@-rm -f *~

distclean: clean
	@-rm -f bgteucls.pdf
	@-rm -f bgteubner.cls bgteubner.ist bgteuversion.tex
	@-rm -f bgteuglo.ist bgteuglochar.ist bgteu*.bst
	@-rm -f cdcover.aux cdcover.log cdcover.tex cdcover.pdf

tar:	all clean
	if [ ! -f "../bgteubner" ]; then (cd .. ; ln -s source bgteubner ); fi
	echo Generate bgteubner-$(VERSION).tar.gz
	-rm -f bgteubner-$(VERSION).tar.gz
	tar czCf .. bgteubner-$(VERSION).tar.gz \
	  $(SRCDIR)/Makefile \
	  $(SRCDIR)/bgteucls.dtx \
	  $(SRCDIR)/bgteucls.ins \
	  $(SRCDIR)/ptmxcomp.sty \
	  $(SRCDIR)/ChangeLog \
	  $(SRCDIR)/getversion.tex
	rm -f getversion.log ../bgteubner

install: all
	if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
	if [ ! -d $(PTMXCOMPDIR) ]; then mkdirhier $(PTMXCOMPDIR); fi
	if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi
	if [ ! -d $(IDXDIR) ]; then mkdirhier $(IDXDIR); fi
	if [ ! -d $(BSTDIR) ]; then mkdirhier $(BSTDIR); fi
	install -m644 bgteubner.cls $(INSTALLDIR)
	install -m644 ptmxcomp.sty $(PTMXCOMPDIR)
	install -m644 bgteucls.pdf $(DOCDIR)
	install -m644 ../doc/bgteubner-17x24-times.pdf $(DOCDIR)/bgteubner.pdf
	install -m644 bgteubner.ist $(IDXDIR)
	install -m644 bgteuglo.ist $(IDXDIR)
	install -m644 bgteuglochar.ist $(IDXDIR)
	install -m644 bgteu*.bst $(BSTDIR)
	texhash

zip: all 
	-@rm -f bgteubner-$(VERSION).zip
	-@rm -f ../pakete/bgteubner-v*.zip
	mkdirhier tex/latex/bgteubner
	mkdirhier tex/latex/ptmxcomp
	mkdirhier makeindex/bgteubner
	mkdirhier bibtex/bst/bgteubner
	mkdirhier doc/latex/bgteubner
	mkdirhier source/latex/bgteubner
	cp bgteubner.cls tex/latex/bgteubner/
	cp ptmxcomp.sty tex/latex/ptmxcomp/
	cp bgteubner.ist bgteuglo.ist bgteuglochar.ist makeindex/bgteubner/
	cp bgteu*.bst bibtex/bst/bgteubner/
	cp bgteucls.pdf ChangeLog doc/latex/bgteubner/
	cp Makefile bgteucls.ins bgteucls.dtx getversion.tex source/latex/bgteubner/
	zip -r bgteubner-$(VERSION).zip tex makeindex bibtex doc source
	rm -rf tex makeindex bibtex doc source
	cp bgteubner-$(VERSION).zip ../pakete
	rm -f getversion.log