-BASENAME = matita
-MATITA_VERSION = @MATITA_VERSION@
+include Makefile.defs
+
+SUBDIRS = libs matita
+
+all: $(foreach d,$(SUBDIRS),all.$(d))
+opt: $(foreach d,$(SUBDIRS),opt.$(d))
+clean: $(foreach d,$(SUBDIRS),clean.$(d))
+distclean: $(foreach d,$(SUBDIRS),distclean.$(d))
+all.%:
+ $(MAKE) -C $* all
+opt.%:
+ $(MAKE) -C $* opt
+clean.%:
+ $(MAKE) -C $* clean
+distclean.%:
+ $(MAKE) -C $* distclean
+
+BASENAME = matita
NULL =
DISTDIR = $(BASENAME)-$(MATITA_VERSION)
CLEAN_ON_DIST = \
dist/README \
dist/ChangeLog \
Makefile \
+ Makefile.defs.in \
+ ./configure \
$(NULL)
-dist: export mktarball
+dist: autotools export mktarball
distcheck: dist extract build
+autotools:
+ autoconf
+
export:
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
mktarball:
tar cvzf $(DISTDIR).tar.gz $(DISTDIR)
-.PHONY: dist export mktarball distcheck extract build
+.PHONY: dist export mktarball distcheck extract build autotools
+.PHONY: all opt clean distclean