X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fwww%2Fmatita%2FMakefile;h=d3113045231698513783f614ab99af4fb45a5b9f;hb=a507a21ca97552dec5077667cf8433f24d7a45ae;hp=2cb06a5ab58a029fad964b95de37b0ee31f8264f;hpb=5b99087bf1b8b8fb1086a72feb6f3fb258a402d8;p=helm.git diff --git a/helm/www/matita/Makefile b/helm/www/matita/Makefile index 2cb06a5ab..d31130452 100644 --- a/helm/www/matita/Makefile +++ b/helm/www/matita/Makefile @@ -1,6 +1,7 @@ +# 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 @@ -15,17 +16,23 @@ 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 - test -d $(DOCS_DEST_DIR)/ || mkdir -p $(DOCS_SRC_DIR)/ - cp $(DOCS_SRC_DIR)/*.html $(DOCS_DEST_DIR)/ + rm -rf $(DOCS_DEST_DIR)/* + test -d $(DOCS_DEST_DIR)/ || mkdir -p $(DOCS_DEST_DIR)/ + $(MAKE) -C $(DOCS_SRC_DIR) install DESTDIR=$(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 \