forked from groue/GRDBQuery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (28 loc) · 918 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
24
25
26
27
28
29
30
31
32
XCPRETTY_PATH := $(shell command -v xcpretty 2> /dev/null)
XCPRETTY =
ifdef XCPRETTY_PATH
XCPRETTY = | xcpretty -c
endif
test:
xcodebuild \
-project Tests/QueryTests/QueryTests.xcodeproj \
-scheme QueryTests \
-destination 'platform=macOS,arch=x86_64' \
clean build build-for-testing test-without-building \
$(XCPRETTY)
docs-localhost:
# Generates documentation in ~/Sites/GRDBQuery
# See https://discussions.apple.com/docs/DOC-3083 for Apache setup on the mac
mkdir -p ~/Sites/GRDBQuery
swift package \
--allow-writing-to-directory ~/Sites/GRDBQuery \
generate-documentation \
--output-path ~/Sites/GRDBQuery \
--target GRDBQuery \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path "~$(USER)/GRDBQuery"
open "http://localhost/~$(USER)/GRDBQuery/documentation/grdbquery/"
distclean:
git clean -dffx .
.PHONY: test docs docs-localhost distclean