-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
38 lines (31 loc) · 878 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
33
34
35
36
37
38
SOURCES := $(shell find Sources)
EOSIO.xcodeproj:
swift package generate-xcodeproj \
--enable-code-coverage \
--skip-extra-files \
--xcconfig-overrides SR-11321.xcconfig
.PHONY: test
test:
swift test
.PHONY: update-tests
update-tests:
swift test --generate-linuxmain && swiftformat \
Tests/LinuxMain.swift \
Tests/EOSIOTests/XCTestManifests.swift
docs: $(SOURCES)
@command -v swift-doc >/dev/null || (echo "doc generator missing, run: brew install swiftdocorg/formulae/swift-doc"; exit 1)
swift-doc generate Sources/EOSIO \
--module-name EOSIO \
--format html \
--output docs \
&& touch docs
.PHONY: deploy-docs
deploy-docs: docs
@command -v gh-pages >/dev/null || (echo "gh-pages missing, run: yarn global add gh-pages"; exit 1)
gh-pages -d docs
.PHONY: clean
clean:
rm -rf EOSIO.xcodeproj docs
.PHONY: distclean
distclean: clean
rm -rf .build