summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bigfoot/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/bigfoot/Makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/bigfoot/Makefile')
-rw-r--r--macros/latex/contrib/bigfoot/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/macros/latex/contrib/bigfoot/Makefile b/macros/latex/contrib/bigfoot/Makefile
new file mode 100644
index 0000000000..eb4867d555
--- /dev/null
+++ b/macros/latex/contrib/bigfoot/Makefile
@@ -0,0 +1,49 @@
+TEX=tex
+PDFLATEX=pdflatex
+DTX=bigfoot.dtx suffix.dtx perpage.dtx
+DIST=README COPYING $(DTX) Makefile bigfoot.ins
+DOC=$(DTX:.dtx=.pdf)
+
+all: $(DIST) $(DTX:.dtx=.sty) $(DOC)
+
+bigfoot-mk.ins: bigfoot.dtx Makefile
+ $(TEX) '\nonstopmode \def\jobname{.ins}\input docstrip ' \
+ '\askforoverwritefalse \nopreamble' \
+ '\generate{\file{bigfoot-mk.ins}{\from{bigfoot.dtx}{installer,make}}}' \
+ '\endbatchfile'
+
+# Not generated by bigfoot-mk.ins in order to allow for hand-editing,
+# like putting debug options in
+bigfoot.ins: bigfoot.dtx Makefile
+ $(TEX) '\nonstopmode \def\jobname{.ins}\input docstrip ' \
+ '\askforoverwritefalse \nopreamble' \
+ '\generate{\file{bigfoot.ins}{\from{bigfoot.dtx}{installer}}}' \
+ '\endbatchfile'
+
+bigfoot.drv bigfoot.sty perpage.drv perpage.sty suffix.drv suffix.sty: bigfoot-mk.ins
+ $(TEX) bigfoot-mk.ins
+
+bigfoot.drv bigfoot.sty: bigfoot.dtx
+perpage.drv perpage.sty: perpage.dtx
+suffix.drv suffix.sty: suffix.dtx
+
+bigfoot.pdf: bigfoot.dtx bigfoot.drv bigfoot.sty perpage.sty suffix.sty
+ $(PDFLATEX) '\nonstopmode\input{bigfoot.drv}'
+ $(PDFLATEX) '\nonstopmode\input{bigfoot.drv}'
+ $(PDFLATEX) '\nonstopmode\input{bigfoot.drv}'
+
+perpage.pdf: perpage.dtx perpage.drv
+ $(PDFLATEX) '\nonstopmode\input{perpage.drv}'
+ $(PDFLATEX) '\nonstopmode\input{perpage.drv}'
+ $(PDFLATEX) '\nonstopmode\input{perpage.drv}'
+
+suffix.pdf: suffix.dtx suffix.drv
+ $(PDFLATEX) '\nonstopmode\input{suffix.drv}'
+ $(PDFLATEX) '\nonstopmode\input{suffix.drv}'
+ $(PDFLATEX) '\nonstopmode\input{suffix.drv}'
+
+bigfoot.tar.gz: $(DIST)
+ tar czf $@ $(DIST)
+
+bigfoot-ctan.tar.gz: $(DIST) $(DOC)
+ tar czf $@ --transform 's,^\(\./\)\?,bigfoot/,' $(DIST) $(DOC)