]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/nlibrary/topology/Makefile
We are still equivalent (even if the definition of ncover is obfuscated).
[helm.git] / helm / software / matita / nlibrary / topology / Makefile
index 74648f75c0a3f01f83a1ab2ddc1ac49abdbf87c3..4a78164fbf95353e0f0b18e0b373194c87750c50 100644 (file)
@@ -1,12 +1,20 @@
+SRC=igft.ma
 
-all:
-       for X in *.ma; do $(MAKE) $$X.html; done
+all: $(SRC:%.ma=%.html)
+
+print: $(SRC:%.ma=%.pdf)
+
+%.pdf: %.html
+       # requires http://torisugari.googlepages.com/commandlineprint2
+       touch $@
+       iceweasel -print file://$$PWD/$< -printmode PDF -printfile ./$@
 
 clean:
-       rm *.html *.png
+       rm *.html *.png *.mdwn
 
-%.ma.html: %.ma convert.awk preamble.xml postamble.xml
+%.html: %.ma convert.awk preamble.xml postamble.xml
        cat preamble.xml > $@
-       awk -f convert.awk < $< | markdown >> $@
+       awk -f convert.awk < $< > $*.mdwn
+       markdown < $*.mdwn >> $@
        cat postamble.xml >> $@