fixed mac envs
[cc1516.git] / Makefile
index f0036fa..6b53e08 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,14 @@
 CPM:=cpm
 
-all:
+.PHONY: man
+
+all: spl spl.1
+
+spl: spl.icl lex.icl lex.dcl parse.icl parse.dcl spl.prj
        $(CPM) make
 
+%.1: %
+       help2man -s 1 -N -o $@ ./$<
+
 clean:
-       $(RM) -rv Clean\ System\ Files sapl main
+       $(RM) -rv Clean\ System\ Files spl spl.1