1## texk/web2c/am/web.am: Makefile fragment for normal web programs (except tangle). 2## 3## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org> 4## You may freely use, modify and/or distribute this file. 5 6web_programs = bibtex dvicopy dvitype gftodvi gftopk gftype mft \ 7 patgen pktogf pktype pltotf pooltype tftopl vftovp vptovf weave 8 9## Basic tests, one for each program. 10## 11web_tests = $(web_programs:=.test) 12 13if WEB 14bin_PROGRAMS += $(web_programs) 15endif WEB 16EXTRA_PROGRAMS += $(web_programs) 17 18EXTRA_DIST += $(web_programs:=.web) $(web_programs:=.ch) 19DISTCLEANFILES += $(web_programs:=.c) $(web_programs:=.h) \ 20 $(web_programs:=.p) $(web_programs:=-web2c) 21 22nodist_bibtex_SOURCES = bibtex.c bibtex.h 23bibtex.c bibtex.h: bibtex-web2c 24 @$(web2c) bibtex 25bibtex-web2c: bibtex.p $(web2c_depend) web2c/cvtbib.sed 26 @$(web2c) bibtex 27bibtex.p: tangle$(EXEEXT) bibtex.web bibtex.ch 28 $(tangle) bibtex bibtex 29web_tests += tests/bibtex-openout-test.pl tests/bibtex-longline-test.pl 30web_tests += tests/bibtex-mem.test 31 32nodist_dvicopy_SOURCES = dvicopy.c dvicopy.h 33dvicopy.c dvicopy.h: dvicopy-web2c 34 @$(web2c) dvicopy 35dvicopy-web2c: dvicopy.p $(web2c_depend) 36 @$(web2c) dvicopy 37dvicopy.p: tangle$(EXEEXT) dvicopy.web dvicopy.ch 38 $(tangle) dvicopy dvicopy 39 40nodist_dvitype_SOURCES = dvitype.c dvitype.h 41dvitype.c dvitype.h: dvitype-web2c 42 @$(web2c) dvitype 43dvitype-web2c: dvitype.p $(web2c_depend) 44 @$(web2c) dvitype 45dvitype.p: tangle$(EXEEXT) dvitype.web dvitype.ch 46 $(tangle) dvitype dvitype 47 48nodist_gftodvi_SOURCES = gftodvi.c gftodvi.h 49gftodvi.c gftodvi.h: gftodvi-web2c 50 @$(web2c) gftodvi 51gftodvi-web2c: gftodvi.p $(web2c_depend) 52 @$(web2c) gftodvi 53gftodvi.p: tangle$(EXEEXT) gftodvi.web gftodvi.ch 54 $(tangle) gftodvi gftodvi 55gftodvi_SOURCES = gftodmem.h 56 57nodist_gftopk_SOURCES = gftopk.c gftopk.h 58gftopk.c gftopk.h: gftopk-web2c 59 @$(web2c) gftopk 60gftopk-web2c: gftopk.p $(web2c_depend) 61 @$(web2c) gftopk 62gftopk.p: tangle$(EXEEXT) gftopk.web gftopk.ch 63 $(tangle) gftopk gftopk 64 65nodist_gftype_SOURCES = gftype.c gftype.h 66gftype.c gftype.h: gftype-web2c 67 @$(web2c) gftype 68gftype-web2c: gftype.p $(web2c_depend) 69 @$(web2c) gftype 70gftype.p: tangle$(EXEEXT) gftype.web gftype.ch 71 $(tangle) gftype gftype 72 73nodist_mft_SOURCES = mft.c mft.h 74mft.c mft.h: mft-web2c 75 @$(web2c) mft 76mft-web2c: mft.p $(web2c_depend) 77 @$(web2c) mft 78mft.p: tangle$(EXEEXT) mft.web mft.ch 79 $(tangle) mft mft 80 81nodist_patgen_SOURCES = patgen.c patgen.h 82patgen.c patgen.h: patgen-web2c 83 @$(web2c) patgen 84patgen-web2c: patgen.p $(web2c_depend) 85 @$(web2c) patgen 86patgen.p: tangle$(EXEEXT) patgen.web patgen.ch 87 $(tangle) patgen patgen 88 89nodist_pktogf_SOURCES = pktogf.c pktogf.h 90pktogf.c pktogf.h: pktogf-web2c 91 @$(web2c) pktogf 92pktogf-web2c: pktogf.p $(web2c_depend) 93 @$(web2c) pktogf 94pktogf.p: tangle$(EXEEXT) pktogf.web pktogf.ch 95 $(tangle) pktogf pktogf 96 97nodist_pktype_SOURCES = pktype.c pktype.h 98pktype.c pktype.h: pktype-web2c 99 @$(web2c) pktype 100pktype-web2c: pktype.p $(web2c_depend) 101 @$(web2c) pktype 102pktype.p: tangle$(EXEEXT) pktype.web pktype.ch 103 $(tangle) pktype pktype 104 105nodist_pltotf_SOURCES = pltotf.c pltotf.h 106pltotf.c pltotf.h: pltotf-web2c 107 @$(web2c) pltotf 108pltotf-web2c: pltotf.p $(web2c_depend) 109 @$(web2c) pltotf 110pltotf.p: tangle$(EXEEXT) pltotf.web pltotf.ch 111 $(tangle) pltotf pltotf 112 113nodist_pooltype_SOURCES = pooltype.c pooltype.h 114pooltype.c pooltype.h: pooltype-web2c 115 @$(web2c) pooltype 116pooltype-web2c: pooltype.p $(web2c_depend) 117 @$(web2c) pooltype 118pooltype.p: tangle$(EXEEXT) pooltype.web pooltype.ch 119 $(tangle) pooltype pooltype 120 121nodist_tftopl_SOURCES = tftopl.c tftopl.h 122tftopl.c tftopl.h: tftopl-web2c 123 @$(web2c) tftopl 124tftopl-web2c: tftopl.p $(web2c_depend) 125 @$(web2c) tftopl 126tftopl.p: tangle$(EXEEXT) tftopl.web tftopl.ch 127 $(tangle) tftopl tftopl 128 129nodist_vftovp_SOURCES = vftovp.c vftovp.h 130vftovp.c vftovp.h: vftovp-web2c 131 @$(web2c) vftovp 132vftovp-web2c: vftovp.p $(web2c_depend) 133 @$(web2c) vftovp 134vftovp.p: tangle$(EXEEXT) vftovp.web vftovp.ch 135 $(tangle) vftovp vftovp 136 137nodist_vptovf_SOURCES = vptovf.c vptovf.h 138vptovf.c vptovf.h: vptovf-web2c 139 @$(web2c) vptovf 140vptovf-web2c: vptovf.p $(web2c_depend) 141 @$(web2c) vptovf 142vptovf.p: tangle$(EXEEXT) vptovf.web vptovf.ch 143 $(tangle) vptovf vptovf 144 145nodist_weave_SOURCES = weave.c weave.h 146weave.c weave.h: weave-web2c 147 @$(web2c) weave 148weave-web2c: weave.p $(web2c_depend) 149 @$(web2c) weave 150weave.p: tangle$(EXEEXT) weave.web weave.ch 151 $(tangle) weave weave 152 153## Tests. 154## 155if WEB 156TESTS += $(web_tests) 157endif WEB 158EXTRA_DIST += $(web_tests) 159 160## bibtex.test 161DISTCLEANFILES += tests/xexampl.aux tests/xexampl.bbl tests/xexampl.blg 162## tests/bibtex-longline-test.pl 163DISTCLEANFILES += longline.aux longline.bbl longline.bib longline.blg 164## tests/bibtex-mem.test 165EXTRA_DIST += tests/memdata1.bst tests/memdata2.bst tests/memdata3.bst 166DISTCLEANFILES += tests/memtest.bib tests/memtest?.* 167## dvicopy.test 168DISTCLEANFILES += tests/xstory.dvi tests/xpplr.dvi 169## dvitype.test 170DISTCLEANFILES += tests/xstory.dvityp tests/xpagenum.typ 171## gftodvi.test 172DISTCLEANFILES += cmr10.dvi tests/xcmr10.dvi 173## gftopk.test 174DISTCLEANFILES += cmr10.pk tests/xcmr10.pk 175## gftype.test 176DISTCLEANFILES += tests/xcmr10.gft1 tests/xcmr10.gft2 177## mft.test 178DISTCLEANFILES += io.tex tests/io.tex 179## patgen.test 180DISTCLEANFILES += tests/xpatout pattmp.4 181## pktogf.test 182DISTCLEANFILES += cmr10.gf tests/xcmr10.600gf 183## pktype.test 184DISTCLEANFILES += tests/xcmr10.pktyp 185## pltotf.test 186DISTCLEANFILES += badpl.* tests/xcmr10.tfm 187## pooltype.test 188DISTCLEANFILES += tests/xtexpool.typ 189## tftopl.test 190DISTCLEANFILES += badtfm.* tests/xcmr10*.pl 191## vftovp.test 192DISTCLEANFILES += badvf.* tests/xptmr*.vpl 193## vptovf.test 194DISTCLEANFILES += badvpl.* tests/yptmr*.* 195## weave.test 196DISTCLEANFILES += pooltype.tex 197 198## Test data 199## 200EXTRA_DIST += \ 201 tests/allbib.aux \ 202 tests/allbib.tex \ 203 tests/apalike.bst \ 204 tests/badpl.pl \ 205 tests/badtfm.tfm \ 206 tests/badvf.tfm \ 207 tests/badvf.vf \ 208 tests/badvpl.vpl \ 209 tests/batch.tex \ 210 tests/check.log \ 211 tests/cmr10.600gf \ 212 tests/cmr10.pk \ 213 tests/cmr10.pl \ 214 tests/cmr10.tfm \ 215 tests/cmr7.tfm \ 216 tests/cmr8.tfm \ 217 tests/cmti10.tfm \ 218 tests/cmtt10.tfm \ 219 tests/cmtt8.tfm \ 220 tests/dict \ 221 tests/eight.tex \ 222 tests/end.tex \ 223 tests/exampl.aux \ 224 tests/exampl.tex \ 225 tests/gray.tfm \ 226 tests/hello.tex \ 227 tests/io.mf \ 228 tests/just.texi \ 229 tests/label.mp \ 230 tests/label.mpx \ 231 tests/logo8.tfm \ 232 tests/longline.aux \ 233 tests/longline.bib \ 234 tests/longline.tex \ 235 tests/longtfm.tex \ 236 tests/magic.tex \ 237 tests/memtest.tex \ 238 tests/mltextst.tex \ 239 tests/mptest.mp \ 240 tests/mptest.mpx \ 241 tests/one.two.mf \ 242 tests/one.two.mp \ 243 tests/one.two.tex \ 244 tests/online.mf \ 245 tests/openout.mp \ 246 tests/openout.tex \ 247 tests/pagenum.dvi \ 248 tests/pagenum.tex \ 249 tests/patgen.in \ 250 tests/patterns \ 251 tests/plain.mft \ 252 tests/pplr.dvi \ 253 tests/pplr.tfm \ 254 tests/ptmr.dvi \ 255 tests/ptmr.tfm \ 256 tests/ptmr.vf \ 257 tests/ptmr.vpl \ 258 tests/rpsyr.tfm \ 259 tests/rptmr.tfm \ 260 tests/story.dvi \ 261 tests/testex.err \ 262 tests/testex.mp \ 263 tests/testex.tex \ 264 tests/translate \ 265 tests/uno.dos \ 266 tests/xampl.bib 267 268