diff options
author | Andrew McDermott <andrew.mcdermott@linaro.org> | 2013-12-16 12:03:27 +0000 |
---|---|---|
committer | Andrew McDermott <andrew.mcdermott@linaro.org> | 2013-12-16 12:03:27 +0000 |
commit | 081de1bab07ebee9a679e32dc558b9b7e2e49440 (patch) | |
tree | 490a3b1f8db618c7671f584222054135dfb5c3f6 | |
parent | b3853f539547265d46333cb51b205b92909cfe60 (diff) |
Makefile: put resultant tarballs in 'out' directory
Makes it easier to glob for the results.
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -45,12 +45,12 @@ ALL_DOWNLOADS := $(JDK8_CORE_TARBALL) $(JDK8_COMPONENT_TARBALLS) .PHONY: all print-commit-ids -all: $(TARBALL) +all: out/$(TARBALL) print-commit-ids: ./print-commit-ids $(JDK8_COMPONENT_TARBALLS) -$(TARBALL): $(ALL_DOWNLOADS) +out/$(TARBALL): $(ALL_DOWNLOADS) | out $(RM) -r $@ $(JDK8_CORE) ./print-commit-ids $(JDK8_COMPONENT_TARBALLS) tar -zxf $(JDK8_CORE_TARBALL) --transform='s/^\([^-]\+\)-[0-9a-f]\{12\}/\1/' @@ -61,6 +61,9 @@ $(TARBALL): $(ALL_DOWNLOADS) done) tar -acf $@ --transform='s/^$(JDK8_CORE)/$(SNAPSHOT_NAME)/' $(JDK8_CORE) +out: + mkdir $@ + net/$(PORT): @mkdir -p $@ @@ -71,8 +74,8 @@ net/$(PORT)/%.tar.gz: | net/$(PORT) wget -O $@ -q $(URL)/$(patsubst %.tar.gz,%,$(notdir $@))/archive/tip.tar.gz clean: - $(RM) -r $(TARBALL) $(JDK8_CORE) net/$(PORT) + $(RM) -r out/$(TARBALL) $(JDK8_CORE) net/$(PORT) unpack: $(RM) -r $(SNAPSHOT_NAME) - tar axf $(TARBALL) + tar axf out/$(TARBALL) |