-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 761 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (23 loc) · 761 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
SWIFT_DEV_PM_FLAGS += --package-path $(CURDIR)/Development/ -Xswiftc -suppress-warnings
CONFIG_FILE=$(CURDIR)/Config/Config.xcconfig
VERSION_CONFIG_FILE=$(CURDIR)/Config/Version.xcconfig
.PHONY: archive build lint open test xcconfig xcodeproj
archive: xcodeproj
swift run $(SWIFT_DEV_PM_FLAGS) carthage build --archive
build: xcconfig
swift build
lint:
swift run $(SWIFT_DEV_PM_FLAGS) swiftlint
open: Promise.xcodeproj
xed .
test:
swift test
xcconfig:
echo "CURRENT_PROJECT_VERSION=$$(git describe --abbrev=0 --tags | cut -c 2-)" > \
$(VERSION_CONFIG_FILE)
xcodeproj: xcconfig
swift package generate-xcodeproj \
--xcconfig-overrides $(CONFIG_FILE)
Promise.xcodeproj:
swift package generate-xcodeproj \
--xcconfig-overrides $(CONFIG_FILE)