X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2FMakefile.common;h=30bd4c8898b29c533655d94ddc5553ed9d908624;hb=1c95887fc7af68023b8b682a34816d8fb4d0a716;hp=b6ad6eb963c4b7a1f6775a0d1d9204f580977d5c;hpb=aef659e5893b4bf8c8544d0c54714e10f5b5493a;p=helm.git diff --git a/helm/software/components/Makefile.common b/helm/software/components/Makefile.common index b6ad6eb96..30bd4c889 100644 --- a/helm/software/components/Makefile.common +++ b/helm/software/components/Makefile.common @@ -7,7 +7,7 @@ H=@ # $IMPLEMENTATION_FILES # $EXTRA_OBJECTS_TO_INSTALL # $EXTRA_OBJECTS_TO_CLEAN -# and put in a directory where there is a .depend file. +# and put in a directory where there is a .depend or .depend.opt file. # $OCAMLFIND must be set to a meaningful vaule, including OCAMLPATH= @@ -75,11 +75,12 @@ depend:: $(DEPEND_FILES) depend.opt:: $(DEPEND_FILES) $(H)echo " OCAMLDEP -native" $(H)$(OCAMLDEP) -native \ - $(INTERFACE_FILES) $(IMPLEMENTATION_FILES) > .depend + $(INTERFACE_FILES) $(IMPLEMENTATION_FILES) > .depend.opt $(PACKAGE).ps: .dep.dot dot -Tps -o $@ $< +# FG: .depend or .depend.opt? .dep.dot: .depend ocamldot < .depend > $@ @@ -129,13 +130,18 @@ STATS_FILES = \ echo -n "LOC:" >> .stats wc -l $(STATS_FILES) | tail -1 | awk '{ print $$1 }' >> .stats -.PHONY: all opt world backup depend install uninstall clean ocamlinit +.PHONY: all opt backup depend depend.opt install uninstall clean ocamlinit -ifneq ($(MAKECMDGOALS), depend) - ifneq ($(MAKECMDGOALS), depend.opt) - include .depend - endif +ifeq ($(MAKECMDGOALS),) + include .depend endif -NULL = +ifeq ($(MAKECMDGOALS), all) + include .depend +endif +ifeq ($(MAKECMDGOALS), opt) + include .depend.opt +endif + +NULL =