summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ginpenc/Makefile
blob: 339acb4bddc4c6d899a1c4151e8799afdab819f4 (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=`latex getversion | grep '^VERSION' | sed 's/^VERSION \\(.*\\)\\.\\(.*\\)/\\1_\\2/'`

.SUFFIXES: .sty .ins .dtx .pdf .ps

.ins.sty:
	pdflatex $<

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


all: ginpenc ginpenc.pdf 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.{pdf,ps,sty}
	@-rm -f testginpenc.{pdf,ps}
	@-rm -f testginpenc.pdf
	@-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)/ChangeLog \
	  $(SRCDIR)/ginpenc.dtx \
	  $(SRCDIR)/ginpenc.pdf \
	  $(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.pdf 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 *.gie $(INSTALLDIR)
	texhash

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