Meer falende monads
[cc1516.git] / Makefile
index 3f8aeff..fb45bca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,16 @@
-CLM:=clm
-CLMFLAGS:=-b -nt
+CPM:=cpm
 
-BINARIES:=lex
+.PHONY: man
 
-.PHONY: all clean
+all: spl
 
-all: $(BINARIES)
+man: spl.1
 
-%: %.icl
-       $(CLM) $(CLMFLAGS) $(basename $<) -o $@
+spl: spl.icl lex.icl lex.dcl parse.icl parse.dcl spl.prj sem.icl sem.dcl
+       $(CPM) make
+
+%.1: %
+       help2man -s 1 -N -o $@ ./$<
 
 clean:
-       $(RM) -rv $(BINARIES) Clean\ System\ Files
+       $(RM) -rv Clean\ System\ Files spl spl.1