| OLD | NEW |
| 1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 preparser/preparser.gyp samples/samples.gyp src/d8.gyp \ | 91 preparser/preparser.gyp samples/samples.gyp src/d8.gyp \ |
| 92 test/cctest/cctest.gyp tools/gyp/v8.gyp | 92 test/cctest/cctest.gyp tools/gyp/v8.gyp |
| 93 | 93 |
| 94 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". | 94 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". |
| 95 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) | 95 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) |
| 96 # Generates corresponding test targets, e.g. "ia32.release.check". | 96 # Generates corresponding test targets, e.g. "ia32.release.check". |
| 97 CHECKS = $(addsuffix .check,$(BUILDS)) | 97 CHECKS = $(addsuffix .check,$(BUILDS)) |
| 98 # File where previously used GYPFLAGS are stored. | 98 # File where previously used GYPFLAGS are stored. |
| 99 ENVFILE = $(OUTDIR)/environment | 99 ENVFILE = $(OUTDIR)/environment |
| 100 | 100 |
| 101 .PHONY: all clean $(ENVFILE).new \ | 101 .PHONY: all check clean $(ENVFILE).new \ |
| 102 $(ARCHES) $(MODES) $(BUILDS) $(addsuffix .clean,$(ARCHES)) | 102 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \ |
| 103 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) |
| 103 | 104 |
| 104 # Target definitions. "all" is the default. | 105 # Target definitions. "all" is the default. |
| 105 all: $(MODES) | 106 all: $(MODES) |
| 106 | 107 |
| 107 # Compile targets. MODES and ARCHES are convenience targets. | 108 # Compile targets. MODES and ARCHES are convenience targets. |
| 108 .SECONDEXPANSION: | 109 .SECONDEXPANSION: |
| 109 $(MODES): $(addsuffix .$$@,$(ARCHES)) | 110 $(MODES): $(addsuffix .$$@,$(ARCHES)) |
| 110 | 111 |
| 111 $(ARCHES): $(addprefix $$@.,$(MODES)) | 112 $(ARCHES): $(addprefix $$@.,$(MODES)) |
| 112 | 113 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 # Replaces the old with the new environment file if they're different, which | 163 # Replaces the old with the new environment file if they're different, which |
| 163 # will trigger GYP to regenerate Makefiles. | 164 # will trigger GYP to regenerate Makefiles. |
| 164 $(ENVFILE): $(ENVFILE).new | 165 $(ENVFILE): $(ENVFILE).new |
| 165 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \ | 166 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \ |
| 166 then rm $(ENVFILE).new; \ | 167 then rm $(ENVFILE).new; \ |
| 167 else mv $(ENVFILE).new $(ENVFILE); fi | 168 else mv $(ENVFILE).new $(ENVFILE); fi |
| 168 | 169 |
| 169 # Stores current GYPFLAGS in a file. | 170 # Stores current GYPFLAGS in a file. |
| 170 $(ENVFILE).new: | 171 $(ENVFILE).new: |
| 171 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; | 172 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; |
| OLD | NEW |