4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-09-10 22:22:31 +00:00
Files
.github
bridge
contrib
docker
gateway
hook
img
internal
matterclient
matterhook
vendor
github.com
42wim
Baozisoftware
Jeffail
Philipp15b
Rhymen
SevereCloud
blang
d5
davecgh
dgrijalva
disintegration
dyatlov
francoispqt
fsnotify
go-asn1-ber
go-telegram-bot-api
golang
gomarkdown
google
gopackage
gorilla
hashicorp
jpillora
keybase
kyokomi
labstack
lrstanley
magiconair
matrix-org
matterbridge
mattermost
mattn
mgutz
missdeer
mitchellh
monaco-io
mreiferson
mrexodia
nelsonken
paulrosania
pborman
pelletier
go-toml
.dockerignore
.gitignore
CONTRIBUTING.md
Dockerfile
LICENSE
Makefile
PULL_REQUEST_TEMPLATE.md
README.md
azure-pipelines.yml
benchmark.sh
doc.go
example-crlf.toml
example.toml
fuzz.go
fuzz.sh
fuzzit.sh
go.mod
go.sum
keysparsing.go
lexer.go
localtime.go
marshal.go
marshal_OrderPreserve_test.toml
marshal_test.toml
parser.go
position.go
token.go
toml.go
tomltree_create.go
tomltree_write.go
philhofer
pkg
pmezard
rickb777
rs
russross
saintfish
shazow
sirupsen
skip2
slack-go
spf13
stretchr
subosito
technoweenie
tinylib
valyala
vincent-petithory
wiggin77
writeas
yaegashi
zfjagann
go.uber.org
golang.org
gomod.garykim.dev
google.golang.org
gopkg.in
layeh.com
modules.txt
.dockerignore
.fixmie.yml
.gitignore
.golangci.yaml
.goreleaser.yml
Dockerfile
LICENSE
README.md
changelog.md
go.mod
go.sum
matterbridge.go
matterbridge.toml.sample
matterbridge.toml.simple
tgs.Dockerfile
matterbridge/vendor/github.com/pelletier/go-toml/Makefile
2020-08-10 00:29:54 +02:00

30 lines
631 B
Makefile

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)