summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/miller/Makefile
blob: 6a6f057bb8cfc31fbff08fe837297040f4cbdcdc (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

SRCDIR=miller
TEXMF=`kpsewhich --expand-path='$$TEXMFLOCAL'`
INSTALLDIR=tex/latex/miller
DOCDIR=/doc/latex/miller
SOURCEDIR=/source/latex/miller
TEXLIVEDIR=texmf-dist
VERSION=`grep -e '\\[.*\\]' miller-v.tex | sed 's/  \\[[0-9/]* *\\([v0-9]*\\)\\.\\([0-9]*\\).*\\]/\\1_\\2/'`


.SUFFIXES: .sty .ins .dtx .pdf

.ins.sty:
	latex $<

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


all: miller miller.pdf millertest.pdf ausgabe 

millertest.pdf: millertest.tex miller.sty
	pdflatex millertest


miller: miller.sty



clean:
	@-rm -f miller.glo miller.gls miller.idx miller.ilg
	@-rm -f miller.ind miller.aux miller.log miller.toc
	@-rm -f millertest.log millertest.aux
	@-rm -f *~

distclean: clean
	@-rm -f miller.sty miller.pdf
	@-rm -f millertest.pdf miller-v.tex

tar:	all clean
	echo Lege miller-$(VERSION).tar.gz an
	-rm -f miller-$(VERSION).tar.gz
	tar czCf .. miller-$(VERSION).tar.gz \
	  $(SRCDIR)/README \
	  $(SRCDIR)/ChangeLog \
	  $(SRCDIR)/Makefile \
	  $(SRCDIR)/miller.dtx \
	  $(SRCDIR)/miller.ins \
	  $(SRCDIR)/miller.pdf \
	  $(SRCDIR)/millertest.tex \
	  $(SRCDIR)/miller.xml

install: all
	if [ ! -d $(TEXMF)/$(INSTALLDIR) ]; then mkdir -p $(TEXMF)/$(INSTALLDIR); else rm -f $(TEXMF)/$(INSTALLDIR)/*; fi
	if [ ! -d $(TEXMF)/$(DOCDIR) ]; then mkdir -p $(TEXMF)/$(DOCDIR); else rm -f $(TEXMF)/$(DOCDIR)/*; fi
	if [ ! -d $(TEXMF)/$(SOURCEDIR) ]; then mkdir -p $(TEXMF)/$(SOURCEDIR); else rm -f $(TEXMF)/$(SOURCEDIR)/*; fi
	install -m644 miller.sty $(TEXMF)/$(INSTALLDIR)
	install -m644 miller.pdf README ChangeLog $(TEXMF)/$(DOCDIR)
	install -m644 miller.xml millertest.tex $(TEXMF)/$(DOCDIR)
	install -m644 miller.dtx miller.ins $(TEXMF)/$(SOURCEDIR)

texlive: all clean
	rm -rf $(TEXLIVEDIR)
	mkdir -p $(TEXLIVEDIR)/$(INSTALLDIR)
	mkdir -p $(TEXLIVEDIR)/$(DOCDIR)
	mkdir -p $(TEXLIVEDIR)/$(SOURCEDIR)
	cp miller.sty $(TEXLIVEDIR)/$(INSTALLDIR)
	cp miller.pdf README ChangeLog $(TEXLIVEDIR)/$(DOCDIR)
	cp miller.xml millertest.tex $(TEXLIVEDIR)/$(DOCDIR)
	cp miller.dtx miller.ins $(TEXLIVEDIR)/$(SOURCEDIR)

ausgabe:
	@echo "Please copy miller.sty to a directory"
	@echo "in the LaTeX search path"

miller.sty: miller.ins miller.dtx