-
Notifications
You must be signed in to change notification settings - Fork 165
/
Makefile
37 lines (28 loc) · 693 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: all build test tag release clean clean-release clean-build
all: build
build:
xcodebuild clean build \
-scheme Pine \
-workspace ./Pine.xcworkspace
test:
xcodebuild \
-scheme Pine \
-configuration Debug test \
-workspace ./Pine.xcworkspace
tag:
ifdef PINE_VERSION
/usr/libexec/Plistbuddy -c "Set CFBundleShortVersionString $(PINE_VERSION)" ./Pine/Info.plist
else
@echo 'PINE_VERSION is not set'
endif
release:
xcodebuild archive \
-scheme Pine \
-workspace ./Pine.xcworkspace \
-archivePath Release/App.xcarchive
open Release/App.xcarchive/Products/Applications
clean: clean-release clean-build
clean-release:
rm -r ./Release
clean-build:
rm -r ./build