blob: d43db166189e00ab0e0ea4ea10bb881d8bbc4ce1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
SOURCES_BASE =
SOURCES_LISP = step0_repl.hs
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
#####################
SRCS = step0_repl.hs step1_read_print.hs step2_eval.hs step3_env.hs
OTHER_SRCS = Types.hs Reader.hs Printer.hs Env.hs
BINS = $(SRCS:%.hs=%)
#####################
all: $(BINS) mal
mal: $(word $(words $(BINS)),$(BINS))
cp $< $@
$(BINS): %: %.hs $(OTHER_SRCS)
ghc --make $< -o $@
clean:
rm -f $(BINS) mal *.hi *.o
.PHONY: stats stats-lisp tests $(TESTS)
stats: $(SOURCES)
@wc $^
stats-lisp: $(SOURCES_LISP)
@wc $^
|