summaryrefslogtreecommitdiff
path: root/lex/Makefile
diff options
context:
space:
mode:
authorSébastien Hinderer <Sebastien.Hinderer@inria.fr>2021-03-02 12:21:28 +0100
committerSébastien Hinderer <Sebastien.Hinderer@inria.fr>2021-03-02 12:21:28 +0100
commitbe34be3af2f22f69140b344006b8edba480346f1 (patch)
treee171426d7736b69f6d36df0ed20d79f0d2a7f7be /lex/Makefile
parent9fce0f6fc73b732e63f530047e26afa070ee8d7e (diff)
downloadocaml-be34be3af2f22f69140b344006b8edba480346f1.tar.gz
Build system: deduplicate the rules used to generate the lexers and parsers
Diffstat (limited to 'lex/Makefile')
-rw-r--r--lex/Makefile8
1 files changed, 0 insertions, 8 deletions
diff --git a/lex/Makefile b/lex/Makefile
index adc768e0a4..43ce59faa5 100644
--- a/lex/Makefile
+++ b/lex/Makefile
@@ -19,7 +19,6 @@ ROOTDIR = ..
include $(ROOTDIR)/Makefile.common
-OCAMLYACC ?= $(ROOTDIR)/yacc/ocamlyacc$(EXE)
OCAMLYACCFLAGS = -v
CAMLC = $(BOOT_OCAMLC) -strict-sequence -nostdlib \
@@ -28,7 +27,6 @@ CAMLOPT = $(CAMLRUN) $(ROOTDIR)/ocamlopt$(EXE) -nostdlib -I $(ROOTDIR)/stdlib
COMPFLAGS = -absname -w +a-4-9-41-42-44-45-48 -warn-error A \
-safe-string -strict-sequence -strict-formats -bin-annot
LINKFLAGS =
-BOOT_OCAMLLEX ?= $(CAMLRUN) $(ROOTDIR)/boot/ocamllex
OCAMLLEX ?= $(BOOT_OCAMLLEX)
CAMLDEP = $(BOOT_OCAMLC) -depend
DEPFLAGS = -slash
@@ -56,17 +54,11 @@ clean::
rm -f $(programs) $(programs:=.exe)
rm -f *.cmo *.cmi *.cmx *.cmt *.cmti *.o *.obj
-%.ml %.mli: %.mly
- $(OCAMLYACC) $(OCAMLYACCFLAGS) $<
-
clean::
rm -f parser.ml parser.mli parser.output
beforedepend:: parser.ml parser.mli
-%.ml: %.mll
- $(OCAMLLEX) $(OCAMLLEXFLAGS) $<
-
clean::
rm -f lexer.ml