summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fnbreak/Makefile
blob: 31d0846124616485473c1db98e2a6b14463fab4d (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

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


.SUFFIXES: .sty .ins .dtx .dvi .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: fnbreak fnbreak.pdf fnbreaktest.dvi

fnbreaktest.dvi: fnbreaktest.tex fnbreak.sty
	latex fnbreaktest


fnbreak: fnbreak.sty



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

distclean: clean
	@-rm -f fnbreak.sty fnbreak.pdf
	@-rm -f fnbreaktest.dvi fnbreak-v.tex

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

zip:	texlive
	-@rm -f fnbreak-$(VERSION).zip
	zip -r fnbreak-$(VERSION).zip texmf
	rm -rf texmf
	rm -f getversion.log


texlive:	all clean
	rm -rf texmf
	mkdir -p texmf/tex/latex/fnbreak/
	mkdir -p texmf/doc/latex/fnbreak/
	mkdir -p texmf/source/latex/fnbreak/
	cp fnbreak.sty texmf/tex/latex/fnbreak/
	cp fnbreak.pdf README ChangeLog fnbreaktest.tex texmf/doc/latex/fnbreak/
	cp fnbreak.dtx fnbreak.ins texmf/source/latex/fnbreak/
	cp Makefile fnbreak.xml texmf/source/latex/fnbreak/


install: all
	if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR); fi
	if [ ! -d $(DOCDIR) ]; then mkdir -p $(DOCDIR); fi
	install -m644 fnbreak.sty $(INSTALLDIR)
	install -m644 fnbreak.pdf $(DOCDIR)
	texhash

fnbreak.sty: fnbreak.ins fnbreak.dtx