Commit | Line | Data |
---|---|---|
fa9a9758 | 1 | SRCS = step0_repl.hs step1_read_print.hs step2_eval.hs step3_env.hs \ |
2988d38e | 2 | step4_if_fn_do.hs step5_tco.hs step6_file.hs step7_quote.hs \ |
90f618cb | 3 | step8_macros.hs step9_try.hs stepA_mal.hs |
fa9a9758 | 4 | OTHER_SRCS = Readline.hs Types.hs Reader.hs Printer.hs Env.hs Core.hs |
b76aa73b | 5 | BINS = $(SRCS:%.hs=%) |
b091e954 | 6 | ghc_flags = -Wall |
b76aa73b JM |
7 | |
8 | ##################### | |
9 | ||
5245b079 JM |
10 | all: $(BINS) |
11 | ||
12 | dist: mal | |
b76aa73b JM |
13 | |
14 | mal: $(word $(words $(BINS)),$(BINS)) | |
15 | cp $< $@ | |
16 | ||
17 | $(BINS): %: %.hs $(OTHER_SRCS) | |
b091e954 | 18 | ghc ${ghc_flags} --make $< -o $@ |
b76aa73b JM |
19 | |
20 | clean: | |
21 | rm -f $(BINS) mal *.hi *.o |