DISABLE FDs (REMOVE ME).
[jackhill/mal.git] / haskell / Makefile
CommitLineData
fa9a9758 1SRCS = 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 4OTHER_SRCS = Readline.hs Types.hs Reader.hs Printer.hs Env.hs Core.hs
b76aa73b 5BINS = $(SRCS:%.hs=%)
b091e954 6ghc_flags = -Wall
b76aa73b
JM
7
8#####################
9
5245b079
JM
10all: $(BINS)
11
12dist: mal
b76aa73b
JM
13
14mal: $(word $(words $(BINS)),$(BINS))
15 cp $< $@
16
17$(BINS): %: %.hs $(OTHER_SRCS)
b091e954 18 ghc ${ghc_flags} --make $< -o $@
b76aa73b
JM
19
20clean:
21 rm -f $(BINS) mal *.hi *.o