REGRESSION(183583): [Mac] make without SDKROOT has issues
[WebKit-https.git] / Tools / WebKitTestRunner / Makefile
1 # Build WebKitTestRunner only on Snow Leopard and later.
2
3 OSX_VERSION ?= $(shell sw_vers -productVersion | cut -d. -f 2)
4 BUILD_WEBKITTESTRUNNER = $(shell (( $(OSX_VERSION) >= 6 )) && echo "YES" )
5
6 ifeq "$(BUILD_WEBKITTESTRUNNER)" "YES"
7
8 ifneq (,$(SDKROOT))
9         ifeq (,$(findstring macosx,$(SDKROOT)))
10                 ifeq (,$(findstring clean,$(MAKECMDGOALS)))
11                         OTHER_OPTIONS += -target WebKitTestRunnerApp
12                 endif
13         endif
14 endif
15
16 SCRIPTS_PATH = ../Scripts
17 include ../../Makefile.shared
18
19 else
20
21 all: ;
22
23 debug d development dev develop: ;
24
25 release r deployment dep deploy: ;
26
27 clean: ;
28
29 endif