This repository was archived by the owner on Apr 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 1.27 KB
/
Copy pathMakefile
File metadata and controls
54 lines (40 loc) · 1.27 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
51
52
53
RELEASE_EXE := .build/release/storyalign
.PHONY: default build build-release test install verify-static release clean package-update package-clean update-version
default:build
build:
./scripts/update_storyalign_build.sh
swift build
build-release:
./scripts/update_storyalign_build.sh
swift build -c release
test:
swift test 2>&1 | tee /tmp/test.out
@echo "*******"
@echo "Summary"
@echo "*******"
@grep -B1 "Executed" /tmp/test.out
install:build-release
mkdir -p ./bin
cp $(RELEASE_EXE) ./bin
verify-static:
@if otool -arch all -L "$(RELEASE_EXE)" | grep -Eqi '/(lib)?whisper(\.dylib|.*\.framework)'; then \
echo "dynamic whisper!"; exit 1; \
fi
@if nm -arch all -u "$(RELEASE_EXE)" | grep -Eq '^_whisper_'; then \
echo "unresolved whisper symbols!"; exit 1; \
fi
update-version:
@if [ "$(VERSION)" = "" ]; then \
echo "Missing VERSION (Usage: make VERSION=<version> release)"; \
exit 1; \
fi
./scripts/update_storyalign_version.sh "$(VERSION)"
release:update-version test install verify-static
cd bin && zip -X storyalign-macos-arm64.zip storyalign
clean:
rm -rf .build /tmp/test.out ./bin
package-clean:
rm -rf Package.resolved ~/Library/Caches/org.swift.swiftpm ~/.cache/org.swift.swiftpm
package-update:
swift package update
swift package resolve