type
[cc1516.git] / src / Makefile
index 1749e2c..6b53e08 100644 (file)
@@ -1,15 +1,14 @@
 CPM:=cpm
-BIN:=main
 
-.PHONY: man main
+.PHONY: man
 
-all: $(BIN) $(BIN).1
+all: spl spl.1
 
-main:
+spl: spl.icl lex.icl lex.dcl parse.icl parse.dcl spl.prj
        $(CPM) make
 
 %.1: %
-       help2man ./$< > $@
+       help2man -s 1 -N -o $@ ./$<
 
 clean:
-       $(RM) -rv Clean\ System\ Files sapl $(BIN) $(BIN).1
+       $(RM) -rv Clean\ System\ Files spl spl.1