20 lines
563 B
Makefile
20 lines
563 B
Makefile
SCHEME := Inkless
|
|
DESTINATION ?= platform=iOS Simulator,name=iPhone 17 Pro
|
|
XCODEBUILD := xcodebuild -project Inkless.xcodeproj -scheme $(SCHEME) -derivedDataPath build -quiet
|
|
|
|
.PHONY: fmt check test art
|
|
|
|
fmt:
|
|
swiftformat .
|
|
|
|
check:
|
|
swiftformat --lint .
|
|
swiftlint --strict --quiet
|
|
$(XCODEBUILD) -destination 'generic/platform=iOS Simulator' build
|
|
|
|
test:
|
|
$(XCODEBUILD) -destination '$(DESTINATION)' test
|
|
|
|
art:
|
|
for s in 1 2 3; do rsvg-convert -w $$((240*s)) -h $$((240*s)) Design/printer.svg -o Inkless/Assets.xcassets/Printer.imageset/printer@$${s}x.png; done
|