X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fwww%2Fmatita%2FMakefile;h=0c73ec7f3c2c63b35209ad9a3c1c1bd13b1e7502;hb=29a6362af7185c72a146b50815ad1574225a027f;hp=1f5d2d3c5986b99b12c36b38c53b85da7fde49ac;hpb=f98eeb911a76531c36d1da56e07eb48568f37734;p=helm.git diff --git a/helm/www/matita/Makefile b/helm/www/matita/Makefile index 1f5d2d3c5..0c73ec7f3 100644 --- a/helm/www/matita/Makefile +++ b/helm/www/matita/Makefile @@ -1,3 +1,8 @@ + +# 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 + MARGIN_X=30 MARGIN_Y=206 SIZE_X=426 @@ -5,7 +10,31 @@ SIZE_Y=70 SEQ=3 -all: images/matita.xcf +all: + @echo + @echo "Nothing to do per default, interesting targets:" + @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 $(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)/ + 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 \ $(SIZE_X)x$(SIZE_Y)+$(MARGIN_X)+`expr $(MARGIN_Y) + $$Y '*' '(' $(SIZE_Y) + 1 ')'` tmp.png; \ @@ -14,6 +43,8 @@ all: 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