forked from newmarcel/KeepingYouAwake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 1 KB
/
Makefile
File metadata and controls
38 lines (29 loc) · 1 KB
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
SCHEME = KeepingYouAwake
PROJECT = KeepingYouAwake.xcodeproj
VERSION = 1.5.0pre
OUTPUT_DIR = dist
CARTHAGE_DIR = Carthage
default: dist
clean:
rm -rf build
rm -rf $(CARTHAGE_DIR)
rm -rf $(OUTPUT_DIR)
$(CARTHAGE_DIR):
carthage bootstrap --use-ssh --platform macOS
$(OUTPUT_DIR)/$(SCHEME).app: $(CARTHAGE_DIR)
fastlane gym \
--project $(PROJECT) \
--scheme $(SCHEME) \
--output_directory $(OUTPUT_DIR) \
--buildlog_path $(OUTPUT_DIR) \
--archive_path $(OUTPUT_DIR)/$(SCHEME).xcarchive
$(OUTPUT_DIR)/$(SCHEME)-$(VERSION).zip: $(OUTPUT_DIR)/$(SCHEME).app
@echo "Exporting $(OUTPUT_DIR)/$(SCHEME)-$(VERSION).zip..."
@ditto -c -k --sequesterRsrc --keepParent $(OUTPUT_DIR)/$(SCHEME).app $(OUTPUT_DIR)/$(SCHEME)-$(VERSION).zip
dist: $(OUTPUT_DIR)/$(SCHEME)-$(VERSION).zip
@echo "Verifying code signing identity..."
@spctl -a -vv $(OUTPUT_DIR)/$(SCHEME).app
clangformat:
$(info Reformatting source files with clang-format...)
clang-format -style=file -i $(shell pwd)/**/*.{h,m}
.PHONY: clean dist clang-format