1
SCRIPTS_PATH ?= ../Tools/Scripts
2
XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()'` $(ARGS)
3
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
17
all:
18
	( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
19
20
debug d development dev develop: force
21
	$(SCRIPTS_PATH)/set-webkit-configuration --debug
22
	( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
23
24
release r deployment dep deploy: force
25
	$(SCRIPTS_PATH)/set-webkit-configuration --release
26
	( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
27
28
clean:
29
	( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
30
31
force: ;