| 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 | EXTENSION_FILES = letrecvalues.tex recursivemodules.tex locallyabstract.tex \ |
| 13 | firstclassmodules.tex moduletypeof.tex signaturesubstitution.tex \ |
| 14 | modulealias.tex overridingopen.tex gadts.tex bigarray.tex \ |
| 15 | attributes.tex extensionnodes.etex extensiblevariants.tex \ |
| 16 | generativefunctors.tex extensionsyntax.tex inlinerecords.tex \ |
| 17 | doccomments.tex indexops.tex emptyvariants.tex alerts.tex \ |
| 18 | generalizedopens.tex bindingops.tex extensionnodes.tex privatetypes.tex \ |
| 19 | effects.tex arrayliterals.tex labeledtuples.tex |
| 20 | |
| 21 | FILES = $(addprefix extensions/,$(EXTENSION_FILES)) \ |
| 22 | refman.tex lex.tex names.tex values.tex const.tex types.tex \ |
| 23 | patterns.tex expr.tex typedecl.tex modtypes.tex modules.tex compunit.tex \ |
| 24 | exten.tex classes.tex |
| 25 | |
| 26 | |
| 27 | etex-files: $(FILES) |
| 28 | all: $(FILES) |
| 29 | |
| 30 | |
| 31 | %.gen.tex: %.etex |
| 32 | $(CAMLLATEX) $< -o $*_camltex.tex |
| 33 | $(TRANSF) < $*_camltex.tex > $*.transf_error.tex |
| 34 | mv $*.transf_error.tex $@ |
| 35 | |
| 36 | %.tex: %.gen.tex |
| 37 | $(TEXQUOTE) < $< > $*.texquote_error.tex |
| 38 | mv $*.texquote_error.tex $@ |
| 39 | |
| 40 | |
| 41 | .PHONY: clean |
| 42 | clean: |
| 43 | rm -f *.tex |
| 44 | rm -f extensions/*.tex |
| 45 | |
| 46 | .PHONY: distclean |
| 47 | distclean: clean |