-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 817 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 817 Bytes
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
38
39
40
41
42
.PHONY: build release debug clean zip lint format format-check
BUILD_DIR := build
APP_NAME := Cistern
SCHEME := Cistern
PROJECT := Cistern.xcodeproj
SOURCES := Cistern
build: release
debug:
xcodebuild -project $(PROJECT) \
-scheme $(SCHEME) \
-configuration Debug \
-derivedDataPath $(BUILD_DIR) \
build
release:
xcodebuild -project $(PROJECT) \
-scheme $(SCHEME) \
-configuration Release \
-derivedDataPath $(BUILD_DIR) \
build
zip: release
cd $(BUILD_DIR)/Build/Products/Release && \
zip -r $(APP_NAME).zip $(APP_NAME).app
mv $(BUILD_DIR)/Build/Products/Release/$(APP_NAME).zip .
@echo "Created $(APP_NAME).zip"
lint:
swiftlint lint $(SOURCES)
format:
swift-format -i -r $(SOURCES)
format-check:
swift-format lint -rs $(SOURCES)
clean:
rm -rf $(BUILD_DIR)
rm -f $(APP_NAME).zip