2016-02-18 00:33:19 -06:00
|
|
|
SOURCES_BASE = str.fs types.fs reader.fs printer.fs
|
2015-02-28 11:09:54 -06:00
|
|
|
SOURCES_LISP = env.fs core.fs stepA_mal.fs
|
2015-02-25 22:24:34 -06:00
|
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
|
|
2015-10-06 13:28:11 -05:00
|
|
|
all:
|
2016-02-18 00:33:19 -06:00
|
|
|
true
|
|
|
|
|
|
2016-02-24 00:45:40 -06:00
|
|
|
dist: mal.fs mal
|
2016-02-18 00:33:19 -06:00
|
|
|
|
|
|
|
|
mal.fs: $(SOURCES)
|
2016-02-24 00:45:40 -06:00
|
|
|
cat $+ | egrep -v "^require |^droprequire " > $@
|
|
|
|
|
|
|
|
|
|
mal: mal.fs
|
2016-02-18 00:33:19 -06:00
|
|
|
echo "#! /usr/bin/env gforth" > $@
|
2016-02-24 00:45:40 -06:00
|
|
|
cat $< >> $@
|
2016-02-18 00:33:19 -06:00
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
|
|
clean:
|
2016-02-24 00:45:40 -06:00
|
|
|
rm -f mal.fs mal
|
2015-10-06 13:28:11 -05:00
|
|
|
|
2015-02-25 22:24:34 -06:00
|
|
|
.PHONY: stats tests $(TESTS)
|
|
|
|
|
|
|
|
|
|
stats: $(SOURCES)
|
|
|
|
|
@wc $^
|
2015-10-26 22:33:49 -05:00
|
|
|
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*[\\]|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|
2015-02-25 22:24:34 -06:00
|
|
|
stats-lisp: $(SOURCES_LISP)
|
|
|
|
|
@wc $^
|
2015-10-26 22:33:49 -05:00
|
|
|
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*[\\]|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|