-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 1.45 KB
/
Copy pathMakefile
File metadata and controls
37 lines (25 loc) · 1.45 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
.PHONY: build release test clean lint open
PROJECT = OpenShot.xcodeproj
SCHEME = OpenShot
CONFIG_DEBUG = Debug
CONFIG_RELEASE = Release
# ── Build ──────────────────────────────────────────────
build:
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration $(CONFIG_DEBUG) build
release:
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration $(CONFIG_RELEASE) build
# ── Test ───────────────────────────────────────────────
test:
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration $(CONFIG_DEBUG) test
# ── Clean ──────────────────────────────────────────────
clean:
xcodebuild -project $(PROJECT) -scheme $(SCHEME) clean
rm -rf ~/Library/Developer/Xcode/DerivedData/OpenShot-*
# ── Helpers ────────────────────────────────────────────
open:
open $(PROJECT)
run: build
@APP=$$(find ~/Library/Developer/Xcode/DerivedData/OpenShot-*/Build/Products/Debug -name "OpenShot.app" -maxdepth 1 2>/dev/null | head -1); \
if [ -n "$$APP" ]; then open "$$APP"; else echo "Build first: make build"; fi
loc:
@find OpenShot -name "*.swift" | xargs wc -l | tail -1