# should be a checked out version of sofware/matita/help/C/ (or a symlink to it)
DOCS_SRC_DIR = docs-src
-DOCS_DEST_DIR = docs/manual
+DOCS_DEST_DIR = $(CURDIR)/docs/manual
MARGIN_X=30
MARGIN_Y=206
@echo "Nothing to do per default, interesting targets:"
@echo
@echo " manual # import the (xhtml version of the) user manual"
+ @echo " library # import the scripts building the library"
@echo " images # build images for the splash screen"
+ @echo " papers # build the papers page from xml/papers.xml"
@echo
clean:
manual: manual-stamp
-manual-stamp: $(DOCS_SRC_DIR)/*.xml $(DOCS_SRC_DIR)/*.xsl
+manual-stamp: $(DOCS_SRC_DIR)/*.xml $(DOCS_SRC_DIR)/xsl/*
$(MAKE) -C $(DOCS_SRC_DIR)/ html
rm -rf $(DOCS_DEST_DIR)/*
test -d $(DOCS_DEST_DIR)/ || mkdir -p $(DOCS_DEST_DIR)/
- cp $(DOCS_SRC_DIR)/*.html $(DOCS_SRC_DIR)/*.css $(DOCS_DEST_DIR)/
+ $(MAKE) -C $(DOCS_SRC_DIR) install-html DESTDIR=$(DOCS_DEST_DIR)/
touch $@
+.PHONY: library
+library:
+ if [ -d library/ ] ; then \
+ svn update library/ ; \
+ else \
+ echo "Can't find the scripts, check them out in library/" ; \
+ exit 1 ; \
+ fi
+
+papers: papers.shtml
+papers.shtml: xsl/papers2xhtml.xsl xml/papers.xml
+ xsltproc $^ > $@
+
.PHONY: images
images: images/matita.xcf
for Y in `seq 0 $(SEQ)`; do \