diff options
author | Brian Anderson <banderson@mozilla.com> | 2013-05-07 15:05:25 -0700 |
---|---|---|
committer | Brian Anderson <banderson@mozilla.com> | 2013-05-07 15:05:25 -0700 |
commit | f129b3d0c5930a2a248fc6f617be3fb211699b9b (patch) | |
tree | a969abc4124277a9fa9ed598cff0b6a413289267 | |
parent | c0e79daff963ea6b49e37bf35917aaa45777ce31 (diff) | |
download | servo-f129b3d0c5930a2a248fc6f617be3fb211699b9b.tar.gz servo-f129b3d0c5930a2a248fc6f617be3fb211699b9b.zip |
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.
-rw-r--r-- | Makefile.in | 13 |
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/ |