]> matita.cs.unibo.it Git - helm.git/commitdiff
better makefile
authorEnrico Tassi <enrico.tassi@inria.fr>
Fri, 17 Oct 2008 10:59:29 +0000 (10:59 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Fri, 17 Oct 2008 10:59:29 +0000 (10:59 +0000)
helm/software/matita/contribs/didactic/Makefile

index bc35339e7865db2aa2ac167969e9642c725a5aff..68f956a2409243d025d36a4aa4b12b771d8d4499 100644 (file)
@@ -14,9 +14,6 @@ depend:
        $(BIN)matitadep -dot && rm depends.dot
 depend.opt:
        $(BIN)matitadep.opt -dot && rm depends.dot
-exercise:
-       rm -rf ex/
-       mkdir ex/
-       cp *.ma depends ex/
-       for X in ex/*.ma; do perl -ne 'undef $$/;s/\(\*BEGIN.*?END\*\)/.../msg;print' -i $$X; done
-       echo 'baseuri=cic:/matita/didactic/student' > ex/root
+exercise-%: %
+       cp $< $@
+       perl -ne 'undef $$/;s/\(\*BEGIN.*?END\*\)/.../msg;print' -i $@