| 1 |
# Copyright 2013 TeX Users Group. |
| 2 |
# This file is part of the dialogl package, released under the LPPL; |
| 3 |
# see dialogl.ins for details. |
| 4 |
|
| 5 |
pkg = dialogl |
| 6 |
dtx = $(pkg).dtx grabhedr.dtx listout.dtx menus.dtx |
| 7 |
# |
| 8 |
srcfiles = Makefile README |
| 9 |
srcfiles += $(pkg).ins $(dtx) |
| 10 |
srcfiles += cnvunits.tex dia-driv.tex |
| 11 |
srcfiles += dialogl-doc.sty |
| 12 |
srcfiles += fontmenu.tex fontmenu.lg # doc |
| 13 |
srcfiles += diatest.tex |
| 14 |
derivedfiles = |
| 15 |
|
| 16 |
opt = --interaction=nonstopmode --file-line-error |
| 17 |
latex = latex $(opt) |
| 18 |
pdflatex = pdflatex $(opt) |
| 19 |
# |
| 20 |
%.pdf: %.tex |
| 21 |
$(pdflatex) $< |
| 22 |
$(pdflatex) $< |
| 23 |
|
| 24 |
default: all |
| 25 |
all: dist |
| 26 |
|
| 27 |
derivedfiles += default.los |
| 28 |
default.los: dialogl.dtx |
| 29 |
|
| 30 |
derivedfiles += codialog.pdf |
| 31 |
codialog.pdf: codialog.tex |
| 32 |
echo P | pdflatex $< |
| 33 |
echo P | pdflatex $< |
| 34 |
|
| 35 |
derivedfiles += dia-driv.pdf |
| 36 |
dia-driv.pdf: dialogl-doc.sty |
| 37 |
|
| 38 |
# doesn't really depend on dialog.sty for running, but we want to make |
| 39 |
# sure the .ins works. |
| 40 |
dia-driv.pdf: dialog.sty |
| 41 |
dialog.sty grabhedr.sty listout.tex menus.sty: $(pkg).ins $(dtx) |
| 42 |
yes | head -100 | latex $< |
| 43 |
# \askforoverwritefalse seemingly has no effect. |
| 44 |
|
| 45 |
dist: $(pkg).zip |
| 46 |
$(pkg).zip: manifest.txt $(srcfiles) $(derivedfiles) |
| 47 |
chmod a+rw $^ |
| 48 |
rm -f $@; zip $@ $^ |
| 49 |
|
| 50 |
manifest.txt: $(srcfiles) |
| 51 |
chmod a+rw $^ |
| 52 |
echo $@ $^ | tr ' ' '\n' >$@ |