EXTRA_DIST = \
matita/AUTHORS \
matita/LICENSE \
+ matita/dist/BUGS \
+ matita/dist/ChangeLog \
matita/dist/COPYING \
matita/dist/INSTALL \
matita/dist/README \
- matita/dist/ChangeLog \
Makefile \
Makefile.defs.in \
$(NULL)
distcheck: dist dist_extract dist_test
-dist: dist_mktmpdir dist_export dist_mktarball dist_rmtmpdir
+dist: dist_mktmpdir dist_pre dist_export dist_mktarball dist_rmtmpdir
dist/configure.ac: configure.ac matita/dist/configure.ac.sed
sed -f matita/dist/configure.ac.sed < $< > $@
dist/configure: dist/configure.ac
test -d dist || mkdir dist
dist_rmtmpdir:
test -d dist && rm -rf dist/ || true
+dist_pre:
+ $(MAKE) -C matita dist_pre
dist_export: dist/configure
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
(cd $(DISTDIR) && rm -f $(CLEAN_ON_DIST))
cp $< $(DISTDIR)/configure
cp -r $(EXTRA_DIST) $(DISTDIR)
+ # distribute HTML version of the manual
+ mkdir -p $(DISTDIR)/docs/manual/
+ $(MAKE) -C matita/help/C/ install DESTDIR=$(CURDIR)/$(DISTDIR)/docs/manual/
dist_mktarball:
tar czf $(DISTDIR).tar.gz $(DISTDIR)
rm -rf $(DISTDIR)
MAIN=matita.xml
DEPS := $(wildcard *.xml)
+DESTDIR = /usr/local/share/doc/matita/
+
+all: html txt
+
# one of: "fop", "pdflatex"
PDF_METHOD=pdflatex
# one of: "docbook2tex", "xsl"
TEX_METHOD=xsl
-all: html txt
-
clean:
rm -f *.html *.fo *.pdf
rm -rf $(filter-out version.txt,$(wildcard *.txt))
%.ps: %.dvi
dvips $<
+# installation
+
+install: install-html
+install-html: html-stamp
+ cp *.html *.css $(DESTDIR)
+
+# shotcuts
+
tex: $(patsubst %.xml,%.tex,$(MAIN))
dvi: $(patsubst %.xml,%.dvi,$(MAIN))
ps: $(patsubst %.xml,%.ps,$(MAIN))