perl: Remove step 0.5.
[jackhill/mal.git] / rexx / Makefile
1 SRCS = step0_repl.rexx step1_read_print.rexx step2_eval.rexx step3_env.rexx \
2 step4_if_fn_do.rexx step5_tco.rexx step6_file.rexx step7_quote.rexx \
3 step8_macros.rexx step9_try.rexx stepA_mal.rexx
4 PREPROCESSED = $(SRCS:%.rexx=%.rexxpp)
5
6 all: $(PREPROCESSED) dist
7
8 dist: mal
9
10 mal: mal.rexxpp
11 echo "#!/usr/bin/rexx -a" > $@
12 cat $< >> $@
13 chmod +x $@
14
15 mal.rexxpp: stepA_mal.rexxpp
16 cp -a $+ $@
17
18 $(PREPROCESSED): %.rexxpp: %.rexx readline.rexx types.rexx reader.rexx printer.rexx env.rexx core.rexx
19 cpp -CC -P -nostdinc $< > $@
20
21 clean:
22 rm -f mal.rexx mal *.rexxpp
23
24 .PHONY: all dist clean