summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/dialogl/Makefile
blob: 713542232f7fd62a528e3dd61e445b38bece4e79 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2013 TeX Users Group.
# This file is part of the dialogl package, released under the LPPL;
# see dialogl.ins for details.

pkg = dialogl
dtx = $(pkg).dtx grabhedr.dtx listout.dtx menus.dtx
#
srcfiles = Makefile README
srcfiles += $(pkg).ins $(dtx)
srcfiles += cnvunits.tex dia-driv.tex
srcfiles += dialogl-doc.sty
srcfiles += fontmenu.tex fontmenu.lg # doc
srcfiles += diatest.tex
derivedfiles =

opt = --interaction=nonstopmode --file-line-error
latex = latex $(opt)
pdflatex = pdflatex $(opt)
#
%.pdf: %.tex
	$(pdflatex) $<
	$(pdflatex) $<

default: all
all: dist

derivedfiles += default.los
default.los: dialogl.dtx

derivedfiles += codialog.pdf
codialog.pdf: codialog.tex
	echo P | pdflatex $<
	echo P | pdflatex $<

derivedfiles += dia-driv.pdf
dia-driv.pdf: dialogl-doc.sty

# doesn't really depend on dialog.sty for running, but we want to make
# sure the .ins works.
dia-driv.pdf: dialog.sty
dialog.sty grabhedr.sty listout.tex menus.sty: $(pkg).ins $(dtx)
	yes | head -100 | latex $<
# \askforoverwritefalse seemingly has no effect.

dist: $(pkg).zip
$(pkg).zip: manifest.txt $(srcfiles) $(derivedfiles)
	chmod a+rw $^
	rm -f $@; zip $@ $^

manifest.txt: $(srcfiles)
	chmod a+rw $^
	echo $@ $^ | tr ' ' '\n' >$@