From e4450db8fa0bdf31f3bf50062295b801a6a803ab Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 Apr 2008 17:46:15 +0100 Subject: Allow extra OCAMLDEPFLAGS to be passed, eg to make syntax extensions possible. --- Make.rules.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Make.rules.in') diff --git a/Make.rules.in b/Make.rules.in index 6a56728..b22fdf6 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -47,11 +47,11 @@ depend: .depend ifneq ($(OCAMLFIND),) .depend: $(wildcard *.mli) $(wildcard *.ml) rm -f .depend - $(OCAMLFIND) ocamldep $(OCAMLCPACKAGES) $^ > $@ + $(OCAMLFIND) ocamldep $(OCAMLCPACKAGES) $(OCAMLDEPFLAGS) $^ > $@ else .depend: $(wildcard *.mli) $(wildcard *.ml) rm -f .depend - $(OCAMLDEP) $(OCAMLCINCS) $^ > $@ + $(OCAMLDEP) $(OCAMLCINCS) $(OCAMLDEPFLAGS) $^ > $@ endif ifeq ($(wildcard .depend),.depend) -- cgit From 81294675f6a5058a3381871f1dc99c806922d77c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 15 Apr 2008 18:30:49 +0100 Subject: Metadata parser. --- Make.rules.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Make.rules.in') diff --git a/Make.rules.in b/Make.rules.in index b22fdf6..a25d485 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -40,6 +40,11 @@ else $(OCAMLOPT) $(OCAMLOPTFLAGS) $(OCAMLOPTINCS) -c $< endif +%.ml %.mli: %.mly + ocamlyacc $< +.mll.ml: + ocamllex $< + # Dependencies. depend: .depend @@ -60,4 +65,4 @@ endif .PHONY: depend dist check-manifest dpkg doc -.SUFFIXES: .cmo .cmi .cmx .ml .mli .mll +.SUFFIXES: .cmo .cmi .cmx .ml .mli .mll .mly -- cgit