Add 'backup-rust' and 'restore-rust' build targets

backup-rust moves src/rust up, out of the build directory and restore-rust
moves it back. For use by build automation.
This commit is contained in:
Brian Anderson 2013-05-07 15:05:25 -07:00
parent c0e79daff9
commit f129b3d0c5

View file

@ -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/