summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/rcs-multi/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-03-27 17:35:58 +0000
committerKarl Berry <karl@freefriends.org>2009-03-27 17:35:58 +0000
commitd72adc4188250dc65f067469817b19bdf48db2b0 (patch)
tree1ccf0fe39b00af5be2dc54a66dac545a21452cfe /Master/texmf-dist/source/latex/rcs-multi/Makefile
parentfcbfe57b79d94ecbaa2abcd79da6545496aa01cc (diff)
new latex package rcs-multi (24mar09)
git-svn-id: svn://tug.org/texlive/trunk@12531 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/rcs-multi/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/rcs-multi/Makefile99
1 files changed, 99 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/rcs-multi/Makefile b/Master/texmf-dist/source/latex/rcs-multi/Makefile
new file mode 100644
index 00000000000..90179e6dd00
--- /dev/null
+++ b/Master/texmf-dist/source/latex/rcs-multi/Makefile
@@ -0,0 +1,99 @@
+# $Id: Makefile 628 2007-07-10 20:32:06Z martin $
+
+PACKAGE=rcs-multi
+PACKFILES = ${PACKAGE}.dtx ${PACKAGE}.ins ${PACKAGE}.pdf example.tex \
+ example.pdf Makefile README
+TEXAUX = *.aux *.log *.glo *.ind *.idx *.out *.svt *.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}
+INSGENERATED = ${PACKAGE}.sty
+GENERATED = ${INSGENERATED} ${PACKAGE}.pdf example.pdf ${PACKAGE}.zip ${PACKAGE}.tar.gz ${TESTDIR}/test*.pdf
+ZIPFILE = ${PACKAGE}-${ZIPVERSION}.zip
+
+LATEX_OPTIONS = -interaction=batchmode
+LATEX = pdflatex ${LATEX_OPTIONS}
+
+RED = \033[01;31m
+GREEN = \033[01;32m
+WHITE = \033[00m
+
+.PHONY: all doc package clean fullclean example testclean ${TESTS}
+
+all: package doc example
+new: fullclean all
+
+doc: ${PACKAGE}.pdf
+
+package: ${PACKAGE}.sty
+
+%.pdf: %.dtx
+ ${LATEX} $*.dtx
+ ${LATEX} $*.dtx
+ -makeindex -s gind.ist -o $*.ind $*.idx
+ -makeindex -s gglo.ist -o $*.gls $*.glo
+ ${LATEX} $*.dtx
+ ${LATEX} $*.dtx
+
+%.pdf: %.eps
+ epstopdf $<
+
+%.eps: %.dia
+ dia -t eps -e $@ $<
+
+${PACKAGE}.pdf:
+
+${INSGENERATED}: *.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.tex ${PACKAGE}.sty
+ ${RM} example_chap*.tex
+ ${LATEX} $<
+ ${LATEX} $<
+
+zip: fullclean package doc example tests ${ZIPFILE}
+${PACKAGE}.zip: zip
+
+zip: ZIPVERSION=$(shell grep '\\def\\fileversion{.*}' ${PACKAGE}.dtx | sed -e 's/\\def\\fileversion{\(.*\)}/\1/' -e 's/\s\+//g')
+
+${ZIPFILE}: ${PACKFILES}
+ grep -q '\* Checksum passed \*' ${PACKAGE}.log
+ -pdfopt ${PACKAGE}.pdf opt_${PACKAGE}.pdf && mv opt_${PACKAGE}.pdf ${PACKAGE}.pdf
+ zip ${ZIPFILE} ${PACKFILES}
+ @echo
+ @echo "ZIP file ${ZIPFILE} created!"
+
+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 ${TESTS}: LATEX_OPTIONS=
+
+testclean:
+ @${RM} $(foreach ext, aux log out pdf, tests/test*.${ext})
+
+tests: package testclean
+ @echo "Running tests: ${TESTS}:"
+ @${MAKE} -e -i --no-print-directory ${TESTS} \
+ TESTARGS="-interaction=batchmode -output-directory=${TESTDIR}"\
+ TESTPLOPT="-q"\
+ > /dev/null
+
+${TESTS}: % : ${TESTDIR}/%.tex package testclean
+ @-${LATEX} -interaction=nonstopmode ${TESTARGS} $< 1>/dev/null 2>/dev/null
+ @if (${LATEX} ${TESTARGS} $< && (test ! -e ${TESTDIR}/$*.pl || ${TESTDIR}/$*.pl ${TESTPLOPT})); \
+ then /bin/echo -e "${GREEN}$@ succeeded${WHITE}" >&2; \
+ else /bin/echo -e "${RED}$@ failed!!!!!!${WHITE}" >&2; fi
+
+