cc-metric-collector/Makefile
Thomas Gruber 15cf16b46f
Add Github Action to build RPM (#14)
* Update SPEC file

* Add clean target to Makefile

* add rpmbuild action

* Add missing build dependency

* Fix package name of golang for CentOS8

* Change outputs

* Fix file list and build requires

* Fix for file list

* Also upload SRPM
2021-11-29 16:04:50 +01:00

21 lines
299 B
Makefile

APP = cc-metric-collector
all: $(APP)
$(APP): metric-collector.go
make -C collectors
go get
go build -o $(APP) metric-collector.go
clean:
make -C collectors clean
rm -f $(APP)
fmt:
go fmt collectors/*.go
go fmt sinks/*.go
go fmt receivers/*.go
go fmt metric-collector.go
.PHONY: clean