aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-21 11:23:19 -0700
committerGraydon Hoare <[email protected]>2011-03-21 11:23:19 -0700
commite961f5303d2bd299c27cec1db8befddfc08fc6a6 (patch)
tree26dfa1d7aa77c5878fb7b3b5d17b41a31a725720
parentSplit R and T so that tests run under valgrind but compiler doesn't. (diff)
downloadrust-e961f5303d2bd299c27cec1db8befddfc08fc6a6.tar.xz
rust-e961f5303d2bd299c27cec1db8befddfc08fc6a6.zip
More conservative rule for clean.
-rw-r--r--Makefile.in38
1 files changed, 29 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in
index 1478aeff..12b67937 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -601,6 +601,15 @@ test/compile-fail/%.stage0.out.tmp: test/compile-fail/%.rs $(SREQ0)
$(Q)grep --text --quiet \
"$$(grep error-pattern $< | cut -d : -f 2- | tr -d '\n\r')" $@
+######################################################################
+# Distribution
+######################################################################
+
+PKG_NAME := rust
+PKG_VER = $(shell date +"%Y-%m-%d")-snap
+PKG_DIR = $(PKG_NAME)-$(PKG_VER)
+PKG_TAR = $(PKG_DIR).tar.gz
+
######################################################################
# Cleanup
@@ -610,12 +619,23 @@ test/compile-fail/%.stage0.out.tmp: test/compile-fail/%.rs $(SREQ0)
clean:
@$(call E, cleaning)
- $(Q)rm -f $(foreach ext, cmx cmi cmo cma bc o a d $(X) \
- h cpp ml s \
- out bc dSYM \
- , \
- $(wildcard *.$(ext) \
- */*.$(ext) \
- */*/*.$(ext) \
- */*/*/*.$(ext) \
- ))
+ $(Q)rm -f $(RUNTIME_OBJS)
+ $(Q)rm -f $(LLVMEXT_OBJS)
+ $(Q)rm -f $(BOOT_CMOS) $(BOOT_CMIS) $(BOOT_CMXS) $(BOOT_OBJS)
+ $(Q)rm -f $(ML_DEPFILES) $(C_DEPFILES) $(CRATE_DEPFILES)
+ $(Q)rm -f $(ML_DEPFILES:%.d=%.d.tmp)
+ $(Q)rm -f $(C_DEPFILES:%.d=%.d.tmp)
+ $(Q)rm -f $(CRATE_DEPFILES:%.d=%.d.tmp)
+ $(Q)rm -f $(GENERATED)
+ $(Q)rm -f boot/rustboot$(X) boot/$(CFG_STDLIB)
+ $(Q)rm -f stage0/rustc$(X) stage0/$(CFG_STDLIB) stage0/glue*
+ $(Q)rm -f stage1/rustc$(X) stage1/$(CFG_STDLIB) stage1/glue*
+ $(Q)rm -f stage2/rustc$(X) stage2/$(CFG_STDLIB) stage2/glue*
+ $(Q)rm -f llvmext/$(CFG_LLVMEXT) rt/$(CFG_RUNTIME)
+ $(Q)rm -Rf $(PKG_NAME)-*.tar.gz dist
+ $(Q)rm -f $(foreach ext,cmx cmi cmo cma bc o a d exe,\
+ $(wildcard boot/*/*.$(ext) boot/*/*/*.$(ext)))
+ $(Q)rm -Rf $(foreach ext,out out.tmp \
+ boot$(X) stage0$(X) stage1$(X) stage2$(X) \
+ bc o s exe dSYM, \
+ $(wildcard test/*/*.$(ext)))