mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
15cf16b46f
* 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
21 lines
299 B
Makefile
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
|