summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/onlyamsmath/Makefile
blob: 91a129aefe2ebfb7cd067c743eac948d568b2ea1 (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
VERSION=`grep -e '\\[.*\\]' onlyamsmath-v.tex | sed 's/  \\[[0-9/]* *\\([v0-9]*\\)\\.\\([0-9]*\\).*\\]/\\1_\\2/'`

.SUFFIXES: .sty .ins .dtx .pdf


.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: onlyamsmath onlyamsmath.pdf message 

onlyamsmathtest.pdf:
	pdflatex onlyamsmathtest


onlyamsmath:
	pdflatex onlyamsmath.ins



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

distclean: clean
	@-rm -f onlyamsmath.{sty,pdf,ps}
	@-rm -f onlyamsmathtest.{pdf,ps}

tar:	all clean
	@echo Generate onlyamsmath-$(VERSION).tar.gz
	@-rm -f onlyamsmath-$(VERSION).tar.gz
	@tar czCf .. onlyamsmath-$(VERSION).tar.gz \
	  onlyamsmath/README \
	  onlyamsmath/ChangeLog \
	  onlyamsmath/Makefile \
	  onlyamsmath/onlyamsmath.{dtx,ins,pdf} \
	  onlyamsmath/onlyamsmathtest.tex

zip:	all clean
	@echo Generate onlyamsmath-$(VERSION).zip
	mkdir -p tex/latex/onlyamsmath
	mkdir -p doc/latex/onlyamsmath
	mkdir -p source/latex/onlyamsmath
	cp onlyamsmath.sty tex/latex/onlyamsmath
	cp README ChangeLog onlyamsmath.pdf onlyamsmathtest.tex doc/latex/onlyamsmath
	cp onlyamsmath.dtx onlyamsmath.ins Makefile source/latex/onlyamsmath
	@rm -f onlyamsmath-$(VERSION).zip
	@zip -r onlyamsmath-$(VERSION).zip source/ tex/ doc/
	rm -rf source/ tex/ doc/

message:
	@echo "Please copy onlyamsmath.sty to a directory"
	@echo "in the LaTeX search path"
	@echo "Then run \`latex onlyamsmathtest' to see an example"