diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/standalone/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/standalone/Makefile | 61 |
1 files changed, 55 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/standalone/Makefile b/Master/texmf-dist/source/latex/standalone/Makefile index f2404e832a1..edd3f4ecdb8 100644 --- a/Master/texmf-dist/source/latex/standalone/Makefile +++ b/Master/texmf-dist/source/latex/standalone/Makefile @@ -1,3 +1,14 @@ +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 @@ -6,10 +17,15 @@ unpack: standalone.dtx standalone.ins package: unpack class: unpack -doc: standalone.pdf +doc: ${DOCFILES} -standalone.pdf: standalone.dtx - latexmk -pdf $< +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 @@ -17,9 +33,42 @@ test: unpack for T in test*.tex; do echo "$$T"; pdflatex -interaction=batchmode $$T && echo "OK" || echo "Failure"; done clean: - ${RM} standalone.cfg standalone.tex standalone.sty standalone.cls *.log *.aux *.toc *.vrb *.nav *.pdf *.snm *.out *.fdb_latexmk *.glo + ${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 $@ $^ -ctanify: - ctanify standalone.dtx standalone.ins README Makefile +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 |