5 SUBDIRS = components matita
7 all: $(foreach d,$(SUBDIRS),rec@all@$(d))
8 opt: $(foreach d,$(SUBDIRS),rec@opt@$(d))
9 world: depend $(foreach d,$(SUBDIRS),rec@world@$(d))
12 ifeq ($(HAVE_OCAMLOPT),yes)
13 ifeq ($(DISTRIBUTED),yes)
14 $(MAKE) $(foreach d,$(SUBDIRS),rec@depend.opt@$(d))
16 $(MAKE) $(foreach d,$(SUBDIRS),rec@depend@$(d))
19 $(MAKE) $(foreach d,$(SUBDIRS),rec@depend@$(d))
21 $(H)touch depend-stamp
23 clean: $(foreach d,$(SUBDIRS),rec@clean@$(d))
24 distclean: $(foreach d,$(SUBDIRS),rec@distclean@$(d))
25 $(H)rm -rf .matita library-stamp depend-stamp
26 install: $(foreach d,$(SUBDIRS),rec@install@$(d))
27 uninstall: $(foreach d,$(SUBDIRS),rec@uninstall@$(d))
30 $(MAKE) -C $(word 2, $(subst @, ,$*)) $(word 1, $(subst @, ,$*))
32 # {{{ Distribution stuff
34 ifeq ($(DISTRIBUTED),yes)
35 library: library-stamp
37 $(MAKE) -C matita/ dist_library
43 DISTDIR = $(BASENAME)-$(MATITA_VERSION)
53 matita/dist/ChangeLog \
58 distcheck: dist dist_extract dist_test
60 dist: dist_mktmpdir dist_export dist_mktarball dist_rmtmpdir
61 dist/configure.ac: configure.ac matita/dist/configure.ac.sed
62 sed -f matita/dist/configure.ac.sed < $< > $@
63 dist/configure: dist/configure.ac
66 test -d dist || mkdir dist
68 test -d dist && rm -rf dist/ || true
69 dist_export: dist/configure
72 svn export components $(DISTDIR)/components
73 svn export matita $(DISTDIR)/matita
74 (cd $(DISTDIR) && find . -name .depend -exec rm \{\} \;)
75 (cd $(DISTDIR) && rm -f $(CLEAN_ON_DIST))
76 cp $< $(DISTDIR)/configure
77 cp -r $(EXTRA_DIST) $(DISTDIR)
79 tar czf $(DISTDIR).tar.gz $(DISTDIR)
83 tar xzf $(DISTDIR).tar.gz
88 && $(MAKE) install DESTDIR=`pwd`/install)
90 .PHONY: dist dist_export dist_mktarball distcheck dist_extract dist_test dist_autotools
92 # }}} End of distribution stuff
94 .PHONY: all opt clean distclean
96 # vim: set foldmethod=marker: