summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/ctanupload/Makefile.example
blob: 2fef9e1622439125391e3b673d366cec315960ad (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
# Example Makefile which uses ctanify and ctanupload to pack and upload a
# LaTeX package. The required data is passed using environment variables.
CONTRIBUTION  = foobar
NAME          = John Doe
EMAIL         = john.doe@inter.net
DIRECTORY     = /macros/latex/contrib/${CONTRIBUTION}
LICENSE       = free
FREEVERSION   = lppl
FILE          = ${CONTRIBUTION}.tar.gz
export CONTRIBUTION VERSION NAME EMAIL SUMMARY DIRECTORY DONOTANNOUNCE \
       ANNOUNCE NOTES LICENSE FREEVERSION FILE

ctanify: ${FILE}

${CONTRIBUTION}.sty: ${CONTRIBUTION}.ins ${CONTRIBUTION}.dtx
	yes | tex $<

${CONTRIBUTION}.pdf: ${CONTRIBUTION}.dtx ${CONTRIBUTION}.sty
	latexmk $<

${FILE}: ${CONTRIBUTION}.dtx ${CONTRIBUTION}.ins ${CONTRIBUTION}.sty \
         README ${CONTRIBUTION}.pdf
	ctanify $^

upload: ctanify
	ctanupload -p