Skip to content

Commit

Permalink
Add 'backup-rust' and 'restore-rust' build targets
Browse files Browse the repository at this point in the history
backup-rust moves src/rust up, out of the build directory and restore-rust
moves it back. For use by build automation.
  • Loading branch information
brson committed May 7, 2013
1 parent c0e79da commit f129b3d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit f129b3d

Please sign in to comment.