curry gotcha
[cc1516.git] / Makefile
index 56d9b95..8164795 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,16 @@
 CPM:=cpm
 
-all:
+.PHONY: man
+
+all: spl
+
+man: spl.1
+
+spl: spl.icl lex.icl lex.dcl parse.icl parse.dcl spl.prj sem.icl sem.dcl AST.icl AST.dcl gen.icl gen.dcl
        $(CPM) make
 
+%.1: %
+       help2man -s 1 -N -o $@ ./$<
+
 clean:
-       $(RM) -rv Clean\ System\ Files sapl lex
+       $(RM) -rv Clean\ System\ Files spl spl.1