X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2FMakefile;h=f92c8da64b85481a9bb17b3da81ca653bd0b57ba;hb=aef659e5893b4bf8c8544d0c54714e10f5b5493a;hp=5b069ddf86ccedc87c48d069a7a9a5e16d870024;hpb=ee3f8d6fa92b051394a2ff7c71c03ac33a05182b;p=helm.git diff --git a/helm/software/Makefile b/helm/software/Makefile index 5b069ddf8..f92c8da64 100644 --- a/helm/software/Makefile +++ b/helm/software/Makefile @@ -1,3 +1,4 @@ +H=@ include Makefile.defs @@ -5,10 +6,23 @@ SUBDIRS = components matita all: $(foreach d,$(SUBDIRS),rec@all@$(d)) opt: $(foreach d,$(SUBDIRS),rec@opt@$(d)) -world: $(foreach d,$(SUBDIRS),rec@world@$(d)) +world: depend $(foreach d,$(SUBDIRS),rec@world@$(d)) +depend: depend-stamp +depend-stamp: +ifeq ($(HAVE_OCAMLOPT),yes) + ifeq ($(DISTRIBUTED),yes) + $(MAKE) $(foreach d,$(SUBDIRS),rec@depend.opt@$(d)) + else + $(MAKE) $(foreach d,$(SUBDIRS),rec@depend@$(d)) + endif +else + $(MAKE) $(foreach d,$(SUBDIRS),rec@depend@$(d)) +endif + $(H)touch depend-stamp + clean: $(foreach d,$(SUBDIRS),rec@clean@$(d)) distclean: $(foreach d,$(SUBDIRS),rec@distclean@$(d)) - rm -rf .matita library-stamp + $(H)rm -rf .matita library-stamp depend-stamp install: $(foreach d,$(SUBDIRS),rec@install@$(d)) uninstall: $(foreach d,$(SUBDIRS),rec@uninstall@$(d)) @@ -57,6 +71,7 @@ dist_export: dist/configure mkdir $(DISTDIR) svn export components $(DISTDIR)/components svn export matita $(DISTDIR)/matita + (cd $(DISTDIR) && find . -name .depend -exec rm \{\} \;) (cd $(DISTDIR) && rm -f $(CLEAN_ON_DIST)) cp $< $(DISTDIR)/configure cp -r $(EXTRA_DIST) $(DISTDIR)