forked from unsignedapps/swift-create-xcframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 786 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
#
# Makefile
# swift-create-xcframework
#
# Created by Rob Amos on 7/5/20.
#
PRODUCT := swift-create-xcframework
INSTALL_DIR := /usr/local/bin
# Override this on the command line if you need to
BUILD_FLAGS :=
.PHONY: build build-release install install-debug
default: build
build: build-debug
# Release Builds
build-release: $(wildcard Sources/*/*.swift)
swift build $(BUILD_FLAGS) --configuration release
install: build-release
cp .build/release/swift-create-xcframework $(INSTALL_DIR)/$(PRODUCT)
touch -c $(INSTALL_DIR)/$(PRODUCT)
# Debug builds
build-debug: $(wildcard Sources/*/*.swift)
swift build $(BUILD_FLAGS) --configuration debug
install-debug: build-debug
cp .build/debug/swift-create-xcframework $(INSTALL_DIR)/$(PRODUCT)
touch -c $(INSTALL_DIR)/$(PRODUCT)