forked from textmate/textmate
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (38 loc) · 1.21 KB
/
Makefile
File metadata and controls
50 lines (38 loc) · 1.21 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
39
40
41
42
43
44
45
46
47
48
49
50
.PHONY: all debug release clean clean-debug clean-release run package patch minor swift-build-debug swift-build-release
all: debug
swift-build-debug:
@if command -v swift >/dev/null 2>&1; then \
Frameworks/OakSwiftUI/build.sh debug build-debug; \
else \
echo "Swift not found — skipping OakSwiftUI build"; \
fi
swift-build-release:
@if command -v swift >/dev/null 2>&1; then \
Frameworks/OakSwiftUI/build.sh release build-release; \
else \
echo "Swift not found — skipping OakSwiftUI build"; \
fi
debug: swift-build-debug
cmake -B build-debug -G Ninja -DCMAKE_BUILD_TYPE=Debug
ninja -C build-debug
CS_IDENTITY ?= -
release: swift-build-release
cmake -B build-release -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCS_IDENTITY="$(CS_IDENTITY)"
ninja -C build-release
package:
@set -- $(filter patch minor,$(MAKECMDGOALS)); \
if [ "$$#" -gt 1 ]; then \
echo "ERROR: pass only one bump target: patch or minor"; \
exit 1; \
fi; \
ruby scripts/prepare_release.rb "$${1:-patch}"
@bash scripts/package.sh
patch minor:
@:
run: debug
open build-debug/Applications/TextMate/TextMate.app
clean: clean-debug clean-release
clean-debug:
rm -rf build-debug
clean-release:
rm -rf build-release