forked from textmate/textmate
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 907 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 907 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
33
34
35
36
.PHONY: all debug release clean clean-debug clean-release run 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
release: swift-build-release
cmake -B build-release -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
ninja -C build-release
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