aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Moffitt <jack@metajack.im>2013-05-07 20:04:30 -0700
committerJack Moffitt <jack@metajack.im>2013-05-07 20:04:30 -0700
commit49edf85f5d98ea44198c24befa02bebada8fdad4 (patch)
treeca13459365e73d64cdfa1461bf5efa982803e89d
parentf55b8730b89e1ddae030fa4b56ed37c05d4f59f7 (diff)
parentf129b3d0c5930a2a248fc6f617be3fb211699b9b (diff)
downloadservo-49edf85f5d98ea44198c24befa02bebada8fdad4.tar.gz
servo-49edf85f5d98ea44198c24befa02bebada8fdad4.zip
Merge pull request #418 from brson/wip
Add 'backup-rust' and 'restore-rust' build targets
-rw-r--r--Makefile.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 3e733b9f915..d0c31bfd78d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -254,3 +254,16 @@ bindings: $(AUTOGEN_SRC_servo)
package:
endif
+
+# Build commands for backing up and restoring the Rust build.
+# Because Rust takes a very long time to build and changes infrequently,
+# the bots want to reuse it between builds. They can do so by running
+# `make backup-rust` and `make restore-rust`.
+
+.PHONY: backup-rust restore-rust
+backup-rust:
+ mv src/rust ..
+
+restore-rust:
+ rm -rf src/rust
+ mv ../rust src/