summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/leftidx/Makefile
blob: adafde2333033afc81fead528254f0dc42302452 (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

SRCDIR=leftidx
INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/leftidx
DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/leftidx
VERSION=`grep '^\\\\def\\\\fileversion' leftidx.dtx | sed 's/^\\\\def\\\\fileversion{\\(.*\\)\\.\\(.*\\)}/\\1_\\2/'`


.SUFFIXES: .sty .ins .dtx .dvi .ps

.ins.sty:
	latex $<

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

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


all: leftidx leftidx.dvi ausgabe 


leftidx: leftidx.sty



clean:
	@-rm -f leftidx.{glo,gls,idx,ilg,ind,aux,log,toc}
	@-rm -f *~

distclean: clean
	@-rm -f leftidx.{sty,dvi,ps}

tar:	all clean
	echo Lege leftidx-$(VERSION).tar.gz an
	-rm -f leftidx-$(VERSION).tar.gz
	tar czCf .. leftidx-$(VERSION).tar.gz \
	  $(SRCDIR)/README $(SRCDIR)/Makefile \
	  $(SRCDIR)/leftidx.{dtx,ins,dvi} \
	  $(SRCDIR)/leftidx.xml

zip:	all clean
	-@rm -f leftidx-$(VERSION).zip
	mkdirhier tex/latex/leftidx
	mkdirhier doc/latex/leftidx
	mkdirhier source/latex/leftidx
	mv leftidx.sty tex/latex/leftidx
	cp leftidx.{dtx,ins,xml} Makefile source/latex/leftidx
	cp README leftidx.dvi doc/latex/leftidx
	zip -r leftidx-$(VERSION).zip tex doc source
	rm -r tex/ doc/ source/

install: all
	if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
	if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi
	install -m644 leftidx.sty $(INSTALLDIR)
	install -m644 leftidx.dvi $(DOCDIR)
	texhash

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


leftidx.sty: leftidx.ins leftidx.dtx