diff options
author | 6543 <6543@obermui.de> | 2020-09-01 16:01:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-01 10:01:23 -0400 |
commit | 3270e7a4435fceb757728dfc319fc04077a37caf (patch) | |
tree | 60dcaf02442e930c0b2c7bd7fe0f0b00190a402f /vendor/github.com/pelletier/go-toml/Makefile | |
parent | 66843f22375b67a58746dac508b71200a96e68d6 (diff) | |
download | gitea-3270e7a4435fceb757728dfc319fc04077a37caf.tar.gz gitea-3270e7a4435fceb757728dfc319fc04077a37caf.zip |
[Vendor] update go-swagger v0.21.0 -> v0.25.0 (#12670)
* Update go-swagger
* vendor
Diffstat (limited to 'vendor/github.com/pelletier/go-toml/Makefile')
-rw-r--r-- | vendor/github.com/pelletier/go-toml/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/github.com/pelletier/go-toml/Makefile b/vendor/github.com/pelletier/go-toml/Makefile new file mode 100644 index 0000000000..9e4503aea6 --- /dev/null +++ b/vendor/github.com/pelletier/go-toml/Makefile @@ -0,0 +1,29 @@ +export CGO_ENABLED=0 +go := go +go.goos ?= $(shell echo `go version`|cut -f4 -d ' '|cut -d '/' -f1) +go.goarch ?= $(shell echo `go version`|cut -f4 -d ' '|cut -d '/' -f2) + +out.tools := tomll tomljson jsontoml +out.dist := $(out.tools:=_$(go.goos)_$(go.goarch).tar.xz) +sources := $(wildcard **/*.go) + + +.PHONY: +tools: $(out.tools) + +$(out.tools): $(sources) + GOOS=$(go.goos) GOARCH=$(go.goarch) $(go) build ./cmd/$@ + +.PHONY: +dist: $(out.dist) + +$(out.dist):%_$(go.goos)_$(go.goarch).tar.xz: % + if [ "$(go.goos)" = "windows" ]; then \ + tar -cJf $@ $^.exe; \ + else \ + tar -cJf $@ $^; \ + fi + +.PHONY: +clean: + rm -rf $(out.tools) $(out.dist) |