PROJECT := Photochk.xcodeproj SCHEME := Photochk BUILD := $(CURDIR)/build VERSION := 1.0.0 .PHONY: generate build test run release install clean generate: xcodegen generate build: generate xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Debug \ -derivedDataPath $(BUILD) build test: generate xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Debug \ -derivedDataPath $(BUILD) test run: build open $(BUILD)/Build/Products/Debug/Photochk.app # 配布用の Release ビルドと zip を dist/ に作る release: generate xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Release \ -derivedDataPath $(BUILD) build mkdir -p dist ditto -c -k --keepParent $(BUILD)/Build/Products/Release/Photochk.app \ dist/Photochk-$(VERSION).zip install: release ditto $(BUILD)/Build/Products/Release/Photochk.app /Applications/Photochk.app clean: rm -rf $(BUILD) $(PROJECT) dist