forked from AcademyIFCE/swift-book
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 688 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (16 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This makefile uses only POSIX 'make' features, except for the
# following widely implemented extensions -- the .PHONY target, which
# marks targets that don't generate a file whose name is the same as the
# target, and prerequisites that depend on glob expansion.
.POSIX:
.SUFFIXES:
.DEFAULT: preview
.IGNORE: preview
.PHONY: preview
preview:
swift package --disable-sandbox preview-documentation
.PHONY: archive
archive: .build/plugins/Swift-DocC/outputs/TSPL.doccarchive
.build/plugins/Swift-DocC/outputs/TSPL.doccarchive: Sources/TSPL/TSPL.docc/*/*.md
.build/plugins/Swift-DocC/outputs/TSPL.doccarchive: Sources/TSPL/TSPL.docc/Assets/*.png
swift package generate-documentation