summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/svn-multi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/svn-multi/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/svn-multi/Makefile79
1 files changed, 79 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/svn-multi/Makefile b/Master/texmf-dist/source/latex/svn-multi/Makefile
new file mode 100644
index 00000000000..9938f54c67a
--- /dev/null
+++ b/Master/texmf-dist/source/latex/svn-multi/Makefile
@@ -0,0 +1,79 @@
+# $Id: Makefile 628 2007-07-10 20:32:06Z martin $
+
+PACKAGE=svn-multi
+PACKFILES = ${PACKAGE}.dtx ${PACKAGE}.ins ${PACKAGE}.pdf example_main.tex \
+ example_chap1.tex example.pdf Makefile README
+TEXAUX = *.aux *.log *.glo *.ind *.idx *.out *.svn *.toc *.ilg *.gls *.hd
+TESTDIR = tests
+TESTS = $(patsubst %.tex,%,$(subst ${TESTDIR}/,,$(wildcard ${TESTDIR}/test?.tex ${TESTDIR}/test??.tex))) # look for all test*.tex file names and remove the '.tex'
+TESTARGS = -output-directory ${TESTDIR}
+GENERATED = ${PACKAGE}.pdf ${PACKAGE}.sty svnkw.sty example.pdf ${PACKAGE}.zip ${PACKAGE}.tar.gz ${TESTDIR}/test*.pdf
+
+RED = \033[01;31m
+GREEN = \033[01;32m
+WHITE = \033[00m
+
+.PHONY: all doc package clean fullclean example ${TESTS}
+
+all: package doc example
+new: fullclean all
+
+doc: ${PACKAGE}.pdf
+
+package: ${PACKAGE}.sty
+
+${PACKAGE}.pdf: ${PACKAGE}.dtx ${PACKAGE}.sty
+ pdflatex ${PACKAGE}.dtx
+ pdflatex ${PACKAGE}.dtx
+ pdflatex ${PACKAGE}.dtx
+ makeindex -s gind.ist -o ${PACKAGE}.ind ${PACKAGE}.idx
+ makeindex -s gglo.ist -o ${PACKAGE}.gls ${PACKAGE}.glo
+ pdflatex ${PACKAGE}.dtx
+ pdflatex ${PACKAGE}.dtx
+
+${PACKAGE}.sty: ${PACKAGE}.dtx ${PACKAGE}.ins
+ yes | latex ${PACKAGE}.ins
+
+clean:
+ rm -f ${TEXAUX} $(addprefix ${TESTDIR}/, ${TEXAUX})
+
+fullclean:
+ rm -f ${TEXAUX} $(addprefix ${TESTDIR}/, ${TEXAUX}) ${GENERATED} *~ *.backup
+
+example: example.pdf
+
+example.pdf: example_main.tex example_chap1.tex ${PACKAGE}.sty
+ pdflatex $<
+ pdflatex $<
+ mv example_main.pdf $@
+
+nsexample: namespace_example.tex $(wildcard namespace*.tex)
+ pdflatex $<
+ pdflatex $<
+
+zip: package doc example ${PACKAGE}.zip
+
+${PACKAGE}.zip: ${PACKFILES}
+ grep -q '\* Checksum passed \*' svn-multi.log
+ cd .. && zip ${PACKAGE}/$@ $(addprefix ${PACKAGE}/, ${PACKFILES})
+
+tar.gz: ${PACKAGE}.tar.gz
+
+${PACKAGE}.tar.gz:
+ tar -czf $@ ${PACKFILES}
+
+# Make sure TeX finds the input files in TESTDIR
+tests ${TESTS}: export TEXINPUTS:=${TEXINPUTS}:${TESTDIR}
+
+tests: package
+ @echo "Running tests: ${TESTS}:"
+ @${MAKE} -e -i --no-print-directory ${TESTS} \
+ TESTARGS="-interaction=batchmode -output-directory=${TESTDIR}"\
+ > /dev/null
+
+${TESTS}: % : ${TESTDIR}/%.tex package
+ @if (pdflatex ${TESTARGS} $<) && (pdflatex ${TESTARGS} $<); \
+ then echo -e "${GREEN}$@ succeeded${WHITE}" >&2; \
+ else echo -e "${RED}$@ failed!!!!!!${WHITE}" >&2; fi
+
+