mitz@apple.com | 10955a5a | 2010-12-18 00:02:12 +0000 | [diff] [blame] | 1 | SCRIPTS_PATH ?= ../Tools/Scripts |
thatcher | b0cc075 | 2007-07-18 13:55:11 +0000 | [diff] [blame] | 2 | XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()'` $(ARGS) |
thatcher | fab2077 | 2006-01-08 04:14:06 +0000 | [diff] [blame] | 3 | |
mrowe@apple.com | aac5dab | 2012-02-03 07:44:38 +0000 | [diff] [blame] | 4 | DEFAULT_VERBOSITY := $(shell defaults read org.webkit.BuildConfiguration BuildTranscriptVerbosity 2>/dev/null || echo "default") |
| 5 | VERBOSITY ?= $(DEFAULT_VERBOSITY) |
| 6 | |
| 7 | ifeq ($(VERBOSITY),default) |
| 8 | OUTPUT_FILTER = grep -v setenv |
| 9 | else |
| 10 | ifeq ($(VERBOSITY),noisy) |
| 11 | OUTPUT_FILTER = cat |
| 12 | else |
| 13 | OUTPUT_FILTER = $(SCRIPTS_PATH)/filter-build-webkit |
| 14 | endif |
| 15 | endif |
| 16 | |
thatcher | fab2077 | 2006-01-08 04:14:06 +0000 | [diff] [blame] | 17 | all: |
mrowe@apple.com | aac5dab | 2012-02-03 07:44:38 +0000 | [diff] [blame] | 18 | ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} ) |
thatcher | fab2077 | 2006-01-08 04:14:06 +0000 | [diff] [blame] | 19 | |
thatcher | 8abc374 | 2006-03-07 23:35:12 +0000 | [diff] [blame] | 20 | debug d development dev develop: force |
thatcher | b0cc075 | 2007-07-18 13:55:11 +0000 | [diff] [blame] | 21 | $(SCRIPTS_PATH)/set-webkit-configuration --debug |
mrowe@apple.com | aac5dab | 2012-02-03 07:44:38 +0000 | [diff] [blame] | 22 | ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} ) |
thatcher | fab2077 | 2006-01-08 04:14:06 +0000 | [diff] [blame] | 23 | |
thatcher | 8abc374 | 2006-03-07 23:35:12 +0000 | [diff] [blame] | 24 | release r deployment dep deploy: force |
thatcher | b0cc075 | 2007-07-18 13:55:11 +0000 | [diff] [blame] | 25 | $(SCRIPTS_PATH)/set-webkit-configuration --release |
mrowe@apple.com | aac5dab | 2012-02-03 07:44:38 +0000 | [diff] [blame] | 26 | ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} ) |
thatcher | fab2077 | 2006-01-08 04:14:06 +0000 | [diff] [blame] | 27 | |
| 28 | clean: |
mrowe@apple.com | aac5dab | 2012-02-03 07:44:38 +0000 | [diff] [blame] | 29 | ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} ) |
thatcher | 8abc374 | 2006-03-07 23:35:12 +0000 | [diff] [blame] | 30 | |
| 31 | force: ; |