-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (20 loc) · 845 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
CONFIG = debug
PLATFORM_IOS = iOS Simulator,id=$(call udid_for,iOS 17.2,iPhone \d\+ Pro [^M])
PLATFORM_MACOS = macOS
PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst
PLATFORM_TVOS = tvOS Simulator,id=$(call udid_for,tvOS 17.2,TV)
PLATFORM_VISIONOS = visionOS Simulator,id=$(call udid_for,visionOS 1.0,Vision)
PLATFORM_WATCHOS = watchOS Simulator,id=$(call udid_for,watchOS 10.2,Watch)
default: test-all
test-all:
swift test --enable-code-coverage
docs:
mkdir -p $(output)/$(tag)
swift package \
--allow-writing-to-directory $(output)/$(tag) \
generate-documentation --target $(target) \
--output-path $(output)/$(tag) \
--transform-for-static-hosting \
--hosting-base-path /$(basepath)/$(tag) \
&& echo "✅ Documentation generated for $(target) @ $(tag) release." \
|| echo "⚠️ Documentation skipped for $(target) @ $(tag)."