Bgerstle has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/201578

Change subject: makefile: fix clean goal
......................................................................

makefile: fix clean goal

Change-Id: I8d3538f76f96502cd1237e795479919890d40d32
---
M Makefile
1 file changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/ios/wikipedia 
refs/changes/78/201578/1

diff --git a/Makefile b/Makefile
index 1cdc793..744cf5d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,31 +1,32 @@
 XCODE_VERSION = "$(shell xcodebuild -version 2>/dev/null)"
 XC_WORKSPACE = Wikipedia.xcworkspace
 XCODEBUILD_BASE_ARGS = -workspace $(XC_WORKSPACE)
+XC_DEFAULT_SCHEME = Wikipedia
 
 help: ##Show this help
        @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | 
sed -e 's/##//'
 
 clean: ##Clean the Xcode workspace
-       xcodebuild clean $(XCODEBUILD_BASE_ARGS)
+       xcodebuild clean $(XCODEBUILD_BASE_ARGS) -scheme $(XC_DEFAULT_SCHEME) 
 
 build: ##Fetch code dependencies and build the app for release
 build: get-deps
        xcodebuild build $(XCODEBUILD_BASE_ARGS) \
-               -scheme Wikipedia \
+               -scheme $(XC_DEFAULT_SCHEME) \
                -sdk iphoneos \
                -configuration Release
 
 build-sim: ##Fetch code dependencies and build the app for debugging in the 
simulator
 build-sim: get-deps
        xcodebuild build $(XCODEBUILD_BASE_ARGS) \
-               -scheme Wikipedia \
+               -scheme $(XC_DEFAULT_SCHEME) \
                -sdk iphonesimulator \
                -configuration Debug
 
 test: ##Fetch code dependencies and run tests
 test: get-deps
        xcodebuild test $(XCODEBUILD_BASE_ARGS) \
-               -scheme Wikipedia \
+               -scheme $(XC_DEFAULT_SCHEME) \
                -sdk iphonesimulator
 
 lint: ##Lint the native code, requires uncrustify

-- 
To view, visit https://gerrit.wikimedia.org/r/201578
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d3538f76f96502cd1237e795479919890d40d32
Gerrit-PatchSet: 1
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Bgerstle <bgers...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to