-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