]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/www/matita/Makefile
added support for displaying the list of papers related to matita in the documentatio...
[helm.git] / helm / www / matita / Makefile
index 72b216cb4de9f4c1a639db81d1b061b8fed1b97e..0c73ec7f3c2c63b35209ad9a3c1c1bd13b1e7502 100644 (file)
@@ -1,4 +1,5 @@
 
+# 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
 
@@ -15,14 +16,24 @@ all:
        @echo
        @echo "  manual    # import the (xhtml version of the) user manual"
        @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
+manual-stamp: $(DOCS_SRC_DIR)/*.xml $(DOCS_SRC_DIR)/*.xsl
        $(MAKE) -C $(DOCS_SRC_DIR)/ html
-       cp $(DOCS_SRC_DIR)/*.html $(DOCS_DEST_DIR)/
+       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)/
        touch $@
 
+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 \
                convert images/matita.png -crop \
@@ -32,6 +43,8 @@ images: images/matita.xcf
        rm tmp.png              
 
 clean:
+       rm -f manual-stamp
+dist-clean: clean
        for X in `seq 0 $(SEQ)`; do\
                rm images/bg$$X.png;\
        done