Add "dependencies" target to top-level Makefile

Review URL: http://codereview.chromium.org/7739021

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9178 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5eb11917
...@@ -70,6 +70,7 @@ else ...@@ -70,6 +70,7 @@ else
endif endif
# ----------------- available targets: -------------------- # ----------------- available targets: --------------------
# - "dependencies": pulls in external dependencies (currently: GYP)
# - any arch listed in ARCHES (see below) # - any arch listed in ARCHES (see below)
# - any mode listed in MODES # - any mode listed in MODES
# - every combination <arch>.<mode>, e.g. "ia32.release" # - every combination <arch>.<mode>, e.g. "ia32.release"
...@@ -98,7 +99,7 @@ CHECKS = $(addsuffix .check,$(BUILDS)) ...@@ -98,7 +99,7 @@ CHECKS = $(addsuffix .check,$(BUILDS))
# File where previously used GYPFLAGS are stored. # File where previously used GYPFLAGS are stored.
ENVFILE = $(OUTDIR)/environment ENVFILE = $(OUTDIR)/environment
.PHONY: all check clean $(ENVFILE).new \ .PHONY: all check clean dependencies $(ENVFILE).new \
$(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \ $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \
$(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES))
...@@ -170,3 +171,8 @@ $(ENVFILE): $(ENVFILE).new ...@@ -170,3 +171,8 @@ $(ENVFILE): $(ENVFILE).new
# Stores current GYPFLAGS in a file. # Stores current GYPFLAGS in a file.
$(ENVFILE).new: $(ENVFILE).new:
@mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new;
# Dependencies.
dependencies:
svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \
--revision 1026
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment