mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-19 03:05:55 +02:00
Add go sources in internal/...
This commit is contained in:
parent
e6c636be90
commit
3f1155ff6d
4
Makefile
4
Makefile
@ -3,7 +3,8 @@ GOSRC_APP := metric-collector.go
|
|||||||
GOSRC_COLLECTORS := $(wildcard collectors/*.go)
|
GOSRC_COLLECTORS := $(wildcard collectors/*.go)
|
||||||
GOSRC_SINKS := $(wildcard sinks/*.go)
|
GOSRC_SINKS := $(wildcard sinks/*.go)
|
||||||
GOSRC_RECEIVERS := $(wildcard receivers/*.go)
|
GOSRC_RECEIVERS := $(wildcard receivers/*.go)
|
||||||
GOSRC := $(GOSRC_APP) $(GOSRC_COLLECTORS) $(GOSRC_SINKS) $(GOSRC_RECEIVERS)
|
GOSRC_INTERNAL := $(wildcard internal/*/*.go)
|
||||||
|
GOSRC := $(GOSRC_APP) $(GOSRC_COLLECTORS) $(GOSRC_SINKS) $(GOSRC_RECEIVERS) $(GOSRC_INTERNAL)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(APP)
|
all: $(APP)
|
||||||
@ -23,6 +24,7 @@ fmt:
|
|||||||
go fmt $(GOSRC_COLLECTORS)
|
go fmt $(GOSRC_COLLECTORS)
|
||||||
go fmt $(GOSRC_SINKS)
|
go fmt $(GOSRC_SINKS)
|
||||||
go fmt $(GOSRC_RECEIVERS)
|
go fmt $(GOSRC_RECEIVERS)
|
||||||
|
go fmt $(GOSRC_INTERNAL)
|
||||||
go fmt $(GOSRC_APP)
|
go fmt $(GOSRC_APP)
|
||||||
find . -name "*.go" -exec go fmt {} \;
|
find . -name "*.go" -exec go fmt {} \;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user