RPYTHON = rpython
-#PYTHONPATH = /home/joelm/scratch/pypy/rpython
-#export PYTHONPATH
UPPER_STEPS = step4_if_fn_do step5_tco step6_file step7_quote step8_macros step9_try stepA_mal
-
-STEPS: step0_repl step1_read_print step2_eval step3_env $(UPPER_STEPS)
+STEPS = step0_repl step1_read_print step2_eval step3_env $(UPPER_STEPS)
all: $(STEPS)
+dist: mal
+
+mal: stepA_mal
+ cp $< $@
+
%: %.py
$(RPYTHON) --output=$@ $<
step3_env: $(STEP3_DEPS)
$(UPPER_STEPS): $(STEP4_DEPS)
+.PHONY: clean
+
clean:
- rm -f $(STEPS) *.pyc
+ rm -f mal $(STEPS) *.pyc
+ rm -rf __pycache__
+