]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/hbugs/common/Makefile
added ocamlfind trick to trigger rebuild when some library's .cma has
[helm.git] / helm / hbugs / common / Makefile
index 3a3d96821d8a2f8f0b1f5e622254569590a761a0..94c354f044a880981bc56b95ac2a524ae18e43eb 100644 (file)
@@ -18,6 +18,8 @@ MODULES =     \
 
 OBJS = $(patsubst %,%.cmo,$(MODULES))
 OBJSOPT = $(patsubst %,%.cmx,$(MODULES))
+DEPS = $(shell $(OCAMLFIND) query -recursive -predicates byte -format "%d/%a" $(REQUIRES))
+DEPSOPT = $(shell $(OCAMLFIND) query -recursive -predicates native -format "%d/%a" $(REQUIRES))
 
 all: byte
 byte: $(OBJS)
@@ -38,6 +40,8 @@ depend:
 %.cmx: %.ml %.cmi
        $(OCAMLOPT) -c $<
 include Makefile.overrides
+$(OBJS): $(DEPS)
+$(OBJSOPT): $(DEPSOPT)
 
 distclean: clean
 clean: