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

SRCDIR=ginpenc
INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/ginpenc
DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/ginpenc
VERSION=`grep '^\\\\def\\\\giefileversion' ginpenc.sty | sed 's/^\\\\def\\\\giefileversion{\\(.*\\)\\.\\(.*\\)}/\\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 $<


all: ginpenc ginpenc.dvi ausgabe 


ginpenc: ginpenc.sty

ginpenc.sty: ginpenc.dtx ginpenc.ins



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

distclean: clean
	@-rm -f ginpenc.{dvi,ps,sty}
	@-rm -f testginpenc.{dvi,ps}
	@-rm -f testginpenc.dvi
	@-rm -f *.gie


tar:	all clean
	echo Lege ginpenc-$(VERSION).tar.gz an
	-rm -f ginpenc-$(VERSION).tar.gz
	tar czCf .. ginpenc-$(VERSION).tar.gz \
	  $(SRCDIR)/Makefile \
	  $(SRCDIR)/README \
	  $(SRCDIR)/ginpenc.dtx \
	  $(SRCDIR)/ginpenc.dvi \
	  $(SRCDIR)/ginpenc.ins \
	  $(SRCDIR)/ginpenc.xml \
	  $(SRCDIR)/news-message.txt \
	  $(SRCDIR)/testginpenc.tex

zip:	all
	mkdirhier tex/latex/ginpenc
	mkdirhier doc/latex/ginpenc
	mkdirhier source/latex/ginpenc
	cp ginpenc.sty *.gie tex/latex/ginpenc/
	cp ginpenc.dvi testginpenc.tex news-message.txt README doc/latex/ginpenc/
	cp ginpenc.ins ginpenc.dtx Makefile source/latex/ginpenc/
	@rm -f ginpenc-$(VERSION).zip
	zip -r ginpenc-$(VERSION) tex doc source
	rm -rf tex doc source

install: all
	if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
	install -m644 ginpenc.sty *.hhe $(INSTALLDIR)
	texhash

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