-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (27 loc) · 859 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
SHELL = /bin/bash
.PHONY: linux
linux: bow-openapi-linux dependencies
swift build
.PHONY: macos
macos: bow-openapi-macos dependencies
swift build
swift test --generate-linuxmain
.PHONY: xcode
xcode: dependencies
vapor build
swift package generate-xcodeproj
.PHONY: dependencies
dependencies:
@rm -rf ./Sources/Clients/AppleSignIn
bow-openapi --name AppleSignIn --schema ./Sources/Clients/AppleSignIn.yaml --output ./Sources/Clients --verbose
.PHONY: bow-openapi-macos
bow-openapi-macos:
brew tap bow-swift/bow
brew install bow-openapi
.PHONY: bow-openapi-linux
bow-openapi-linux:
curl -s https://api.github.com/repos/bow-swift/bow-openapi/releases/latest \
| grep -oP '"tag_name": "\K(.*)(?=")' \
| xargs -I {} wget -O - https://github.com/bow-swift/bow-openapi/archive/{}.tar.gz \
| tar xz \
&& make linux -C bow-openapi-*