swift3: dist rule
authorJoel Martin <github@martintribe.org>
Wed, 24 Feb 2016 06:47:37 +0000 (00:47 -0600)
committerJoel Martin <github@martintribe.org>
Wed, 24 Feb 2016 06:47:37 +0000 (00:47 -0600)
swift3/Makefile

index c4e2dee..f030f32 100644 (file)
@@ -10,6 +10,11 @@ STEPS = step0_repl step1_read_print step2_eval step3_env \
 
 all: $(STEPS)
 
+dist: mal
+
+mal: stepA_mal
+       cp $< $@
+
 step1_read_print step2_eval step3_env: $(STEP3_DEPS)
 step4_if_fn_do step5_tco step6_file step7_quote step8_macros step9_try stepA_mal: $(STEP4_DEPS)
 
@@ -17,7 +22,7 @@ step%: Sources/step%/main.swift
        swiftc $+ -o $@
 
 clean:
-       rm -f $(STEPS)
+       rm -f $(STEPS) mal
 
 .PHONY: stats tests