From c4660f93841488d7011706b8d77998e18a534970 Mon Sep 17 00:00:00 2001 From: Norio Nomura Date: Wed, 30 Mar 2016 12:28:50 +0900 Subject: [PATCH] Add `-configuration` options to `clean` target in `Makefile` `xcodebuild clean` uses `Debug` configuration without `-configuration` option, and cleans directories that used by `Debug` configuration. But `make install` uses `-configuration Release` by scheme of project. By this change, `clean` cleans all directories that used by `Debug`, `Release` and `Test` configurations. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 892dcd541..744700f5a 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,9 @@ test: clean bootstrap clean: rm -f "$(OUTPUT_PACKAGE)" rm -rf "$(TEMPORARY_FOLDER)" - $(BUILD_TOOL) $(XCODEFLAGS) clean + $(BUILD_TOOL) $(XCODEFLAGS) -configuration Debug clean + $(BUILD_TOOL) $(XCODEFLAGS) -configuration Release clean + $(BUILD_TOOL) $(XCODEFLAGS) -configuration Test clean install: package sudo installer -pkg SourceKitten.pkg -target /