forked from chukmunnlee/caddy-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 761 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
#VERSION = "v2.5.2"
TAG := $(shell git rev-parse --short master)
.PHONY: all
all: linux windows darwin darwin-arm64
linux:
GOOS=linux GOARCH=amd64 xcaddy build $(VERSION) \
--output dist/caddy-amd64-linux-$(TAG) \
--with github.com/chukmunnlee/caddy-openapi=.
windows:
GOOS=windows GOARCH=amd64 xcaddy build $(VERSION) \
--output dist/caddy-amd64-windows-$(TAG).exe \
--with github.com/chukmunnlee/caddy-openap=.
darwin:
GOOS=darwin GOARCH=amd64 xcaddy build $(VERSION) \
--output dist/caddy-amd64-darwin-$(TAG) \
--with github.com/chukmunnlee/caddy-openapi=.
darwin-arm64:
GOOS=darwin GOARCH=arm64 xcaddy build $(VERSION) \
--output dist/caddy-arm64-darwin-$(TAG) \
--with github.com/chukmunnlee/caddy-openapi=.