forked from beeper/barcelona
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 954 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
38
39
40
41
42
43
44
BUILD_DIR = ./Build
MACOS_DERIVED_DIR = $(BUILD_DIR)/macOS
MACOS_DESTINATION = "generic/platform=macOS,name=Any Mac"
ifndef GIT_TAG
GIT_TAG := $(shell git log -q -n 1 | head -n 1 | cut -f 2 -d ' ')
endif
clean:
rm -rf barcelona.xcodeproj Build
soft-clean:
rm -rf barcelona.xcodeproj
init:
GIT_TAG=${GIT_TAG} vendor/bin/xcodegen generate
refresh: init
scheme:
set -o pipefail && env NSUnbufferedIO=YES xcodebuild \
-project barcelona.xcodeproj \
-scheme "$(SCHEME)" \
-parallelizeTargets \
-jobs 8 \
-destination "$(DESTINATION)" \
-configuration Release \
-derivedDataPath $(DERIVED_DIR) \
-ONLY_ACTIVE_ARCH=NO | xcbeautify --quieter
scheme-macos:
$(MAKE) scheme DESTINATION=$(MACOS_DESTINATION) DERIVED_DIR=$(MACOS_DERIVED_DIR)
mautrix-macos: refresh
$(MAKE) scheme-macos SCHEME=barcelona-mautrix
macos-stale:
$(MAKE) scheme-macos SCHEME=ci-macos
macos: refresh macos-stale
all: refresh
$(MAKE) -j 2 macos-stale