| 1 |
TEX=tex |
| 2 |
PDFLATEX=pdflatex |
| 3 |
DTX=bigfoot.dtx suffix.dtx perpage.dtx |
| 4 |
DIST=README COPYING $(DTX) Makefile bigfoot.ins |
| 5 |
DOC=$(DTX:.dtx=.pdf) |
| 6 |
|
| 7 |
all: $(DIST) $(DTX:.dtx=.sty) $(DOC) |
| 8 |
|
| 9 |
bigfoot-mk.ins: bigfoot.dtx Makefile |
| 10 |
$(TEX) '\nonstopmode \def\jobname{.ins}\input docstrip ' \ |
| 11 |
'\askforoverwritefalse \nopreamble' \ |
| 12 |
'\generate{\file{bigfoot-mk.ins}{\from{bigfoot.dtx}{installer,make}}}' \ |
| 13 |
'\endbatchfile' |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
bigfoot.ins: bigfoot.dtx Makefile |
| 18 |
$(TEX) '\nonstopmode \def\jobname{.ins}\input docstrip ' \ |
| 19 |
'\askforoverwritefalse \nopreamble' \ |
| 20 |
'\generate{\file{bigfoot.ins}{\from{bigfoot.dtx}{installer}}}' \ |
| 21 |
'\endbatchfile' |
| 22 |
|
| 23 |
bigfoot.drv bigfoot.sty perpage.drv perpage.sty suffix.drv suffix.sty: bigfoot-mk.ins |
| 24 |
$(TEX) bigfoot-mk.ins |
| 25 |
|
| 26 |
bigfoot.drv bigfoot.sty: bigfoot.dtx |
| 27 |
perpage.drv perpage.sty: perpage.dtx |
| 28 |
suffix.drv suffix.sty: suffix.dtx |
| 29 |
|
| 30 |
bigfoot.pdf: bigfoot.dtx bigfoot.drv bigfoot.sty perpage.sty suffix.sty |
| 31 |
$(PDFLATEX) '\nonstopmode\input{bigfoot.drv}' |
| 32 |
$(PDFLATEX) '\nonstopmode\input{bigfoot.drv}' |
| 33 |
$(PDFLATEX) '\nonstopmode\input{bigfoot.drv}' |
| 34 |
|
| 35 |
perpage.pdf: perpage.dtx perpage.drv |
| 36 |
$(PDFLATEX) '\nonstopmode\input{perpage.drv}' |
| 37 |
$(PDFLATEX) '\nonstopmode\input{perpage.drv}' |
| 38 |
$(PDFLATEX) '\nonstopmode\input{perpage.drv}' |
| 39 |
|
| 40 |
suffix.pdf: suffix.dtx suffix.drv |
| 41 |
$(PDFLATEX) '\nonstopmode\input{suffix.drv}' |
| 42 |
$(PDFLATEX) '\nonstopmode\input{suffix.drv}' |
| 43 |
$(PDFLATEX) '\nonstopmode\input{suffix.drv}' |
| 44 |
|
| 45 |
bigfoot.tar.gz: $(DIST) |
| 46 |
tar czf $@ $(DIST) |
| 47 |
|
| 48 |
bigfoot-ctan.tar.gz: $(DIST) $(DOC) |
| 49 |
tar czf $@ --transform 's,^\(\./\)\?,bigfoot/,' $(DIST) $(DOC) |