2018-05-10 10:24:02 -07:00
|
|
|
TOPDIR = ../../..
|
2016-05-05 12:29:47 -07:00
|
|
|
include $(TOPDIR)/Makefile.tools
|
|
|
|
|
2018-05-10 10:24:02 -07:00
|
|
|
LD_PATH = "$(TOPDIR)/otherlibs/str:$(TOPDIR)/otherlibs/unix"
|
2018-04-09 07:17:12 -07:00
|
|
|
|
2018-05-10 10:24:02 -07:00
|
|
|
TOOLS = ../../tools
|
|
|
|
CAMLLATEX = $(SET_LD_PATH) \
|
2018-07-25 01:38:08 -07:00
|
|
|
$(OCAMLRUN) $(TOPDIR)/tools/caml-tex \
|
|
|
|
-repo-root $(TOPDIR) -n 80 -v false
|
2018-06-25 21:58:23 -07:00
|
|
|
TEXQUOTE = $(OCAMLRUN) $(TOOLS)/texquote2
|
2018-05-10 10:24:02 -07:00
|
|
|
TRANSF = $(SET_LD_PATH) $(OCAMLRUN) $(TOOLS)/transf
|
|
|
|
|
|
|
|
FILES = comp.tex top.tex runtime.tex native.tex lexyacc.tex intf-c.tex \
|
2019-07-02 09:42:36 -07:00
|
|
|
ocamldep.tex profil.tex debugger.tex browser.tex ocamldoc.tex \
|
2020-10-08 06:19:31 -07:00
|
|
|
warnings-help.tex ocamlbuild.tex flambda.tex \
|
2020-05-05 07:51:53 -07:00
|
|
|
afl-fuzz.tex instrumented-runtime.tex unified-options.tex
|
2018-05-05 12:50:40 -07:00
|
|
|
|
2020-10-08 06:19:31 -07:00
|
|
|
WITH_TRANSF = top.tex intf-c.tex flambda.tex \
|
2016-11-03 07:41:45 -07:00
|
|
|
afl-fuzz.tex lexyacc.tex debugger.tex
|
2016-08-10 12:47:50 -07:00
|
|
|
|
2020-07-07 16:25:47 -07:00
|
|
|
WITH_CAMLEXAMPLE = instrumented-runtime.tex ocamldoc.tex
|
2018-05-05 12:50:40 -07:00
|
|
|
|
2016-08-10 12:47:50 -07:00
|
|
|
|
2018-05-10 10:24:02 -07:00
|
|
|
etex-files: $(FILES)
|
1999-10-05 09:52:34 -07:00
|
|
|
all: $(FILES)
|
1995-11-01 07:45:02 -08:00
|
|
|
|
|
|
|
|
2018-05-10 10:24:02 -07:00
|
|
|
%.tex: %.etex
|
|
|
|
$(TEXQUOTE) < $< > $*.texquote_error.tex
|
|
|
|
mv $*.texquote_error.tex $@
|
1995-11-01 07:45:02 -08:00
|
|
|
|
2018-05-10 10:24:02 -07:00
|
|
|
$(WITH_TRANSF): %.tex: %.etex
|
|
|
|
$(TRANSF) < $< > $*.transf_error.tex
|
|
|
|
mv $*.transf_error.tex $*.transf_gen.tex
|
|
|
|
$(TEXQUOTE) < $*.transf_gen.tex > $*.texquote_error.tex
|
|
|
|
mv $*.texquote_error.tex $@
|
1995-11-01 07:45:02 -08:00
|
|
|
|
2018-05-10 10:24:02 -07:00
|
|
|
$(WITH_CAMLEXAMPLE): %.tex: %.etex
|
|
|
|
$(CAMLLATEX) $< -o $*.gen.tex
|
|
|
|
$(TRANSF) < $*.gen.tex > $*.transf_error.tex
|
|
|
|
mv $*.transf_error.tex $*.transf_gen.tex
|
|
|
|
$(TEXQUOTE) < $*.transf_gen.tex > $*.texquote_error.tex
|
|
|
|
mv $*.texquote_error.tex $@
|
2018-05-05 12:50:40 -07:00
|
|
|
|
2015-02-26 20:10:10 -08:00
|
|
|
warnings-help.etex: ../warnings-help.etex
|
2018-05-10 10:24:02 -07:00
|
|
|
cp $< $@
|
|
|
|
|
2015-06-30 01:05:30 -07:00
|
|
|
|
2018-05-10 10:24:02 -07:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f *.tex
|
2015-06-30 01:05:30 -07:00
|
|
|
rm -f warnings-help.etex
|