$NetBSD: patch-aa,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $ --- texk/web2c/ptex-3.1.2/Makefile.in.orig Fri Nov 22 14:20:16 2002 +++ texk/web2c/ptex-3.1.2/Makefile.in Sat Feb 22 05:01:34 2003 @@ -5,11 +5,16 @@ default: programs formats -programs=ptex tftopl pltotf pdvitype jbibtex +programs=ptex ptftopl ppltotf pdvitype pjbibtex euc-formats=ptex-euc.fmt platex-euc.fmt sjis-formats=ptex-sjis.fmt platex-sjis.fmt ac_include ../../make/paths.mk +# +texmflcl = @texmflocal@ +web2c_lcl_dir = $(texmflcl)/web2c +fmt_lcl_dir = $(web2c_lcl_dir) +texpool_lcl_dir = $(web2c_lcl_dir) # Used for triptrap. DIFF = diff @@ -94,6 +99,9 @@ $(srcdir)/tie -c ptex.ch ptex.web ptex-base.ch ### TFtoPL +ptftopl: tftopl + rm -f pftopl + $(LN) tftopl ptftopl tftopl: tftopl.o $(plib_o) $(kpathsea) $(proglib) $(kpathsea_link) tftopl.o $(plib_o) $(LOADLIBES) tftopl.o: tftopl.c kanji.h ptexhelp.h @@ -105,6 +113,9 @@ ### PLtoTF +ppltotf: pltotf + rm -f ppltotf + $(LN) pltotf ppltotf pltotf: pltotf.o $(plib_o) $(kpathsea) $(proglib) $(kpathsea_link) pltotf.o $(plib_o) $(LOADLIBES) pltotf.o: pltotf.c kanji.h ptexhelp.h @@ -125,6 +136,9 @@ $(LN) $(srcdir)/dvitype.web pdvitype.web ### jBibTeX +pjbibtex: jbibtex + rm -f pjbibtex + $(LN) jbibtex pjbibtex jbibtex: jbibtex.o jbibextra.o $(plib_o) $(kpathsea) $(proglib) $(kpathsea_link) jbibtex.o jbibextra.o $(plib_o) $(LOADLIBES) jbibtex.o: jbibtex.c jbibextra.h kanji.h ptexhelp.h @@ -167,11 +181,16 @@ texmf.cnf: $(kpathsea_dir)/texmf.cnf $(SHELL) $(thisdir)/mkconf $< > texmf.cnf -dumpenv = TEXMFCNF=$(thisdir) TEXMF=$(texmf) +#dumpenv = TEXMFCNF=$(thisdir) TEXMF=$(texmf) +newtexmf = $(srcdir)/../../texmf +newtexmflcl = $(srcdir)/../../texmf.local +texin = $(srcdir):{$(newtexmf),$(newtexmflcl)}/ptex// +texfonts = {$(newtexmf),$(newtexmflcl)}/fonts/tfm/ptex// +dumpenv = TEXMFCNF=../../kpathsea TEXINPUTS=.:$(texin): TEXFONTS=$(texfonts): ptex-euc.fmt: ptex texmf.cnf $(dumpenv) $(MAKE) $(makeargs) files="--progname=ptex ptex.tex min10.tfm" prereq-check - $(dumpenv) ./ptex -ini --kanji=euc --jobname=ptex-euc \\input ptex \\dump