| 1 | ROOTDIR = ../../.. |
| 2 | include $(ROOTDIR)/Makefile.common |
| 3 | |
| 4 | LD_PATH = $(ROOTDIR)/otherlibs/str $(ROOTDIR)/otherlibs/unix |
| 5 | |
| 6 | TOOLS = ../../tools |
| 7 | CAMLLATEX = $(OCAMLRUN) $(addprefix -I ,$(LD_PATH)) \ |
| 8 | $(ROOTDIR)/tools/ocamltex -repo-root $(ROOTDIR) -n 80 -v false |
| 9 | TEXQUOTE = $(OCAMLRUN) $(TOOLS)/texquote2 |
| 10 | TRANSF = $(OCAMLRUN) $(TOOLS)/transf |
| 11 | |
| 12 | FILES = afl-fuzz.tex comp.tex debugger.tex flambda.tex intf-c.tex \ |
| 13 | lexyacc.tex native.tex native-debugger.tex ocamldep.tex ocamldoc.tex \ |
| 14 | profil.tex runtime-tracing.tex runtime.tex tail-mod-cons.tex \ |
| 15 | top.tex tsan.tex unified-options.tex warnings-help.tex |
| 16 | |
| 17 | etex-files: $(FILES) |
| 18 | all: $(FILES) |
| 19 | |
| 20 | %.gen.tex: %.etex |
| 21 | $(CAMLLATEX) $< -o $*_camltex.tex |
| 22 | $(TRANSF) < $*_camltex.tex > $*.transf_error.tex |
| 23 | mv $*.transf_error.tex $@ |
| 24 | |
| 25 | %.tex: %.gen.tex |
| 26 | $(TEXQUOTE) < $< > $*.texquote_error.tex |
| 27 | mv $*.texquote_error.tex $@ |
| 28 | |
| 29 | .PHONY: clean |
| 30 | clean: |
| 31 | rm -f *.tex |
| 32 | |
| 33 | .PHONY: distclean |
| 34 | distclean: clean |