5 SUBDIRS = components matita
7 ifeq ($(DISTRIBUTED),yes)
8 # 'world' is the default target when distributed, otherwise 'all' is
9 world: depend $(foreach d,$(SUBDIRS),rec@world@$(d))
10 all: depend $(foreach d,$(SUBDIRS),rec@all@$(d))
11 opt: depend $(foreach d,$(SUBDIRS),rec@opt@$(d))
13 all: $(foreach d,$(SUBDIRS),rec@all@$(d))
14 opt: $(foreach d,$(SUBDIRS),rec@opt@$(d))
15 world: depend $(foreach d,$(SUBDIRS),rec@world@$(d))
19 ifeq ($(HAVE_OCAMLOPT),yes)
20 ifeq ($(DISTRIBUTED),yes)
21 $(MAKE) $(foreach d,$(SUBDIRS),rec@depend.opt@$(d))
23 $(MAKE) $(foreach d,$(SUBDIRS),rec@depend@$(d))
26 $(MAKE) $(foreach d,$(SUBDIRS),rec@depend@$(d))
28 $(H)touch depend-stamp
30 clean: $(foreach d,$(SUBDIRS),rec@clean@$(d))
31 distclean: $(foreach d,$(SUBDIRS),rec@distclean@$(d))
32 $(H)rm -rf .matita library-stamp depend-stamp
33 install-indep: $(foreach d,$(SUBDIRS),rec@install-indep@$(d))
34 install-arch: $(foreach d,$(SUBDIRS),rec@install-arch@$(d))
35 install: install-indep install-arch
36 uninstall: $(foreach d,$(SUBDIRS),rec@uninstall@$(d))
39 $(MAKE) -C $(word 2, $(subst @, ,$*)) $(word 1, $(subst @, ,$*)) DESTDIR=$(shell pwd)/$(DESTDIR)
41 # {{{ Distribution stuff
43 ifeq ($(DISTRIBUTED),yes)
44 library: library-stamp
46 $(MAKE) -C matita/ dist_library
52 DISTDIR = $(BASENAME)-$(MATITA_VERSION)
60 matita/dist/ChangeLog \
68 matita/matitaGeneratedGui.ml \
71 distcheck: dist dist_extract dist_test
73 dist: dist_mktmpdir dist_pre dist_export dist_mktarball dist_rmtmpdir
74 dist/configure.ac: configure.ac matita/dist/configure.ac.sed
75 sed -f matita/dist/configure.ac.sed < $< > $@
76 dist/configure: dist/configure.ac
79 test -d dist || mkdir dist
81 test -d dist && rm -rf dist/ || true
83 $(MAKE) -C matita dist_pre
84 dist_export: dist/configure
87 svn export components $(DISTDIR)/components
88 svn export matita $(DISTDIR)/matita
89 (cd $(DISTDIR) && find . -name .depend -exec rm \{\} \;)
90 (cd $(DISTDIR) && rm -f $(CLEAN_ON_DIST))
91 cp $< $(DISTDIR)/configure
92 cp -r $(EXTRA_DIST) $(DISTDIR)
93 cp -r $(EXTRA_DIST_matita) $(DISTDIR)/matita
94 # distribute HTML version of the manual
95 mkdir -p $(DISTDIR)/docs/manual/
96 $(MAKE) -C matita/help/C/ install DESTDIR=$(CURDIR)/$(DISTDIR)/docs/manual/
98 tar czf $(DISTDIR).tar.gz $(DISTDIR)
99 #tar cjf $(DISTDIR).tar.bz2 $(DISTDIR)
103 tar xzf $(DISTDIR).tar.gz
108 && $(MAKE) install DESTDIR=`pwd`/install)
110 .PHONY: dist dist_export dist_mktarball distcheck dist_extract dist_test dist_autotools
112 # }}} End of distribution stuff
114 .PHONY: all opt clean distclean
116 # vim: set foldmethod=marker: