diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-06 15:03:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-06 15:03:03 +0000 |
commit | bafb761bce627f6f4ca4e263dd68130518b50cf6 (patch) | |
tree | 28764db2f9a390e43517712593f699d69d48c890 /Master/texmf-dist/source/latex/svn-prov/Makefile | |
parent | b4afea7b1b3b0414f91a2c2632b1788c2cc6634f (diff) |
svn-prov 1 (3may09)
git-svn-id: svn://tug.org/texlive/trunk@12948 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/svn-prov/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/svn-prov/Makefile | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/svn-prov/Makefile b/Master/texmf-dist/source/latex/svn-prov/Makefile new file mode 100644 index 00000000000..e630b9a1d6b --- /dev/null +++ b/Master/texmf-dist/source/latex/svn-prov/Makefile @@ -0,0 +1,87 @@ +# $Id: Makefile 1049 2009-05-03 00:24:49Z martin $ + +PACKAGE = svn-prov +PACKAGE_STY = ${PACKAGE}.sty +PACKAGE_DOC = ${PACKAGE}.pdf +PACKAGE_SRC = ${PACKAGE}.dtx ${PACKAGE}.ins Makefile +PACKFILES = ${PACKAGE_SRC} ${PACKAGE_DOC} README +TEXAUX = *.aux *.log *.glo *.ind *.idx *.out *.svn *.svx *.svt *.toc *.ilg *.gls *.hd *.exa *.exb +INSGENERATED = ${PACKAGE_STY} +ZIPFILE = ${PACKAGE}-${ZIPVERSION}.zip +TDSZIPFILE = ${PACKAGE}-${ZIPVERSION}.tds.zip +GENERATED = ${INSGENERATED} ${PACKAGE}.pdf +ZIPS = zip tdszip + +LATEX_OPTIONS = -interaction=batchmode +LATEX = pdflatex ${LATEX_OPTIONS} + +TEXMFDIR = ${HOME}/texmf + +CP = cp -v +MV = mv -v +RMDIR = rm -rf +MKDIR = mkdir -p + +.PHONY: all doc package clean fullclean tds + +all: package doc example +new: fullclean all + +doc: ${PACKAGE}.pdf + +package: ${PACKAGE}.sty + +example: + +%.pdf: %.dtx + ${LATEX} $*.dtx + -makeindex -s gind.ist -o $*.ind $*.idx + -makeindex -s gglo.ist -o $*.gls $*.glo + ${LATEX} $*.dtx + ${LATEX} $*.dtx + +${PACKAGE}.pdf: ${PACKAGE}.sty + +${INSGENERATED}: *.dtx ${PACKAGE}.ins + yes | latex ${PACKAGE}.ins + +clean: + rm -f ${TEXAUX} + +fullclean: clean + rm -f ${GENERATED} *~ *.backup + rm -f ${PACKAGE}*.zip + rm -rf tds/ + +zip: fullclean package doc example ${ZIPFILE} +${PACKAGE}.zip: zip + +${ZIPS}: ZIPVERSION=$(shell grep "Package: ${PACKAGE} " ${PACKAGE}.log | \ + sed -e "s/.*Package: ${PACKAGE} ....\/..\/..\s\+\(v\S\+\).*/\1/") + +${ZIPFILE}: ${PACKFILES} + grep -q '\* Checksum passed \*' ${PACKAGE}.log + -pdfopt ${PACKAGE}.pdf opt_${PACKAGE}.pdf && mv opt_${PACKAGE}.pdf ${PACKAGE}.pdf + ${RM} ${ZIPFILE} + zip ${ZIPFILE} ${PACKFILES} + @echo + @echo "ZIP file ${ZIPFILE} created!" + +tds: package doc + @grep -q '\* Checksum passed \*' ${PACKAGE}.log + ${RMDIR} tds + ${MKDIR} tds/ + ${MKDIR} tds/tex/ tds/tex/latex/ tds/tex/latex/${PACKAGE}/ + ${MKDIR} tds/doc/ tds/doc/latex/ tds/doc/latex/${PACKAGE}/ + ${MKDIR} tds/source/ tds/source/latex/ tds/source/latex/${PACKAGE}/ + ${CP} ${PACKAGE_STY} tds/tex/latex/${PACKAGE}/ + ${CP} ${PACKAGE_DOC} tds/doc/latex/${PACKAGE}/ + ${CP} ${PACKAGE_SRC} tds/source/latex/${PACKAGE}/ + +tdszip: tds + ${RM} ${TDSZIPFILE} + cd tds && zip -r ../${TDSZIPFILE} . + +install: tds + test -d "${TEXMFDIR}" && ${CP} -a tds/* "${TEXMFDIR}/" && texhash ${TEXMFDIR} + |