X-Git-Url: http://git.annexia.org/?p=virt-top.git;a=blobdiff_plain;f=Make.rules.in;h=35af848adcc0bcb4141cd28d41f3118c47d7aad6;hp=6a567281b3c1ec1dd4b03a085042bd82d496fd57;hb=2a8acd07005f2e8cdc43a6cc2a4e6f3d66f9fc4d;hpb=b858ee135c0814f1781cc16802a7b538d5f047a7 diff --git a/Make.rules.in b/Make.rules.in index 6a56728..35af848 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -1,5 +1,5 @@ # ocaml-libvirt -# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones +# Copyright (C) 2007-2009 Red Hat Inc., Richard W.M. Jones # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -40,6 +40,11 @@ else $(OCAMLOPT) $(OCAMLOPTFLAGS) $(OCAMLOPTINCS) -c $< endif +%.ml %.mli: %.mly + ocamlyacc $< +.mll.ml: + ocamllex $< + # Dependencies. depend: .depend @@ -47,11 +52,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) @@ -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