4 SUBDIRS = components matita
6 all: $(foreach d,$(SUBDIRS),all.$(d))
7 opt: $(foreach d,$(SUBDIRS),opt.$(d))
8 clean: $(foreach d,$(SUBDIRS),clean.$(d))
9 distclean: $(foreach d,$(SUBDIRS),distclean.$(d))
18 $(MAKE) -C $* distclean
22 $(MAKE) -C $* uninstall
26 DISTDIR = $(BASENAME)-$(MATITA_VERSION)
35 matita/dist/ChangeLog \
40 dist: dist_mktmpdir dist_export dist_mktarball dist_rmtmpdir
41 distcheck: dist dist_extract dist_build
43 dist/configure.ac: configure.ac matita/dist/configure.ac.sed
44 sed -f matita/dist/configure.ac.sed < $< > $@
45 dist/configure: dist/configure.ac
48 test -d dist || mkdir dist
50 test -d dist && rm -rf dist/ || true
51 dist_export: dist/configure
54 svn export components $(DISTDIR)/components
55 svn export matita $(DISTDIR)/matita
56 (cd $(DISTDIR) && rm -f $(CLEAN_ON_DIST))
57 ln -fs matita.conf.xml.user $(DISTDIR)/matita/matita.conf.xml
58 cp $< $(DISTDIR)/configure
59 cp -r $(EXTRA_DIST) $(DISTDIR)
62 tar czf $(DISTDIR).tar.gz $(DISTDIR)
64 .PHONY: dist dist_export dist_mktarball distcheck dist_extract dist_build dist_autotools
65 .PHONY: all opt clean distclean