blob: edd3f4ecdb85aab11bfc876dd09a46af95626be9 (
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
|
TEXMF=${HOME}/texmf
INSTALLDIR=${TEXMF}/tex/latex/standalone
DOCINSTALLDIR=${TEXMF}/doc/latex/standalone
CP=cp
RMDIR=rm -rf
PDFLATEX=pdflatex -interaction=batchmode
PACKEDFILES=standalone.cls standalone.sty standalone.cfg standalone.tex
DOCFILES=standalone.pdf
SRCFILES=standalone.dtx standalone.ins README Makefile
all: unpack doc
unpack: standalone.dtx standalone.ins
yes | pdflatex standalone.ins
package: unpack
class: unpack
doc: ${DOCFILES}
standalone.pdf: %.pdf: standalone.dtx
${PDFLATEX} $<
${PDFLATEX} $<
-makeindex -s gind.ist -o $*.ind $*.idx
-makeindex -s gglo.ist -o $*.gls $*.glo
${PDFLATEX} $<
${PDFLATEX} $<
.PHONY: test
test: unpack
for T in test*.tex; do echo "$$T"; pdflatex -interaction=batchmode $$T && echo "OK" || echo "Failure"; done
clean:
${RM} ${PACKEDFILES} *.zip *.log *.aux *.toc *.vrb *.nav *.pdf *.snm *.out *.fdb_latexmk *.glo
${RMDIR} .tds
install: unpack doc ${INSTALLDIR} ${DOCINSTALLDIR}
${CP} ${PACKEDFILES} ${INSTALLDIR}
${CP} ${DOCFILES} ${DOCINSTALLDIR}
texhash ${TEXMF}
${INSTALLDIR}:
mkdir -p $@
${DOCINSTALLDIR}:
mkdir -p $@
ctanify: ${SRCFILES} ${DOCFILES} standalone.tds.zip
${RM} standalone.zip
zip standalone.zip $^
unzip -t standalone.zip
unzip -t standalone.tds.zip
zip: standalone.zip
tdszip: standalone.tds.zip
standalone.zip: ${SRCFILES} ${DOCFILES}
${RM} $@
zip $@ $^
standalone.tds.zip: ${SRCFILES} ${DOCFILES} ${PACKEDFILES}
${RMDIR} .tds
mkdir -p .tds/tex/latex/standalone
mkdir -p .tds/doc/latex/standalone
mkdir -p .tds/source/latex/standalone
${CP} ${DOCFILES} .tds/doc/latex/standalone
${CP} ${PACKEDFILES} .tds/tex/latex/standalone
${CP} ${SRCFILES} .tds/source/latex/standalone
cd .tds; zip -r ../$@ .
${RMDIR} .tds
|