|
|
|
@ -1,20 +1,19 @@
|
|
|
|
|
GO111MODULE := on
|
|
|
|
|
|
|
|
|
|
tar: dist bin/icinga2rt dist/icinga2rt.json.example |
|
|
|
|
mkdir dist/bytemine-icinga2rt
|
|
|
|
|
cp bin/icinga2rt dist/bytemine-icinga2rt/bytemine-icinga2rt
|
|
|
|
|
cp README.md dist/bytemine-icinga2rt
|
|
|
|
|
mv dist/icinga2rt.json.example dist/bytemine-icinga2rt
|
|
|
|
|
mv dist/bytemine-icinga2rt "dist/bytemine-icinga2rt-`bin/icinga2rt -version`"
|
|
|
|
|
cd dist && tar cvzf bytemine-icinga2rt-`../bin/icinga2rt -version`.tar.gz bytemine-icinga2rt-`../bin/icinga2rt -version`
|
|
|
|
|
cd dist && rm -r bytemine-icinga2rt-`../bin/icinga2rt -version`
|
|
|
|
|
sha256sum dist/bytemine-icinga2rt-`bin/icinga2rt -version`.tar.gz
|
|
|
|
|
tar: dist bin/rotochute dist/rotochute.json.example |
|
|
|
|
mkdir dist/rotochute
|
|
|
|
|
cp bin/rotochute dist/rotochute/
|
|
|
|
|
cp README.md dist/rotochute/
|
|
|
|
|
mv dist/rotochute.json.example dist/rotochute/
|
|
|
|
|
mv dist/rotochute "dist/rotochute-`bin/rotochute -version`"
|
|
|
|
|
cd dist && tar cvzf rotochute-`../bin/rotochute -version`.tar.gz rotochute-`../bin/rotochute -version`
|
|
|
|
|
cd dist && rm -r rotochute-`../bin/rotochute -version`
|
|
|
|
|
|
|
|
|
|
bin: |
|
|
|
|
mkdir -p bin
|
|
|
|
|
|
|
|
|
|
bin/icinga2rt: bin go.mod main.go cache.go ticket.go config.go rt/rt.go |
|
|
|
|
go build -o bin/icinga2rt
|
|
|
|
|
bin/rotochute: bin go.mod main.go cache.go ticket.go config.go rt/rt.go |
|
|
|
|
go build -o bin/rotochute
|
|
|
|
|
|
|
|
|
|
test: |
|
|
|
|
go test -v
|
|
|
|
@ -22,5 +21,5 @@ test:
|
|
|
|
|
dist: |
|
|
|
|
mkdir -p dist
|
|
|
|
|
|
|
|
|
|
dist/icinga2rt.json.example: dist bin/icinga2rt |
|
|
|
|
cd dist && ../bin/icinga2rt -example
|
|
|
|
|
dist/rotochute.json.example: dist bin/rotochute |
|
|
|
|
cd dist && ../bin/rotochute -example
|
|
|
|
|