mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-08 14:35:55 +02:00
Extend make buildsystem with find&symlink helper for libgangliaSink
This commit is contained in:
parent
05bfb91a16
commit
412b708bce
12
Makefile
12
Makefile
@ -5,6 +5,15 @@ GOSRC_SINKS := $(wildcard sinks/*.go)
|
|||||||
GOSRC_RECEIVERS := $(wildcard receivers/*.go)
|
GOSRC_RECEIVERS := $(wildcard receivers/*.go)
|
||||||
GOSRC_INTERNAL := $(wildcard internal/*/*.go)
|
GOSRC_INTERNAL := $(wildcard internal/*/*.go)
|
||||||
GOSRC := $(GOSRC_APP) $(GOSRC_COLLECTORS) $(GOSRC_SINKS) $(GOSRC_RECEIVERS) $(GOSRC_INTERNAL)
|
GOSRC := $(GOSRC_APP) $(GOSRC_COLLECTORS) $(GOSRC_SINKS) $(GOSRC_RECEIVERS) $(GOSRC_INTERNAL)
|
||||||
|
COMPONENT_DIRS := collectors \
|
||||||
|
sinks \
|
||||||
|
receivers \
|
||||||
|
internal/metricRouter \
|
||||||
|
internal/ccMetric \
|
||||||
|
internal/metricAggregator \
|
||||||
|
internal/ccLogger \
|
||||||
|
internal/ccTopology \
|
||||||
|
internal/multiChanTicker
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
@ -12,12 +21,13 @@ all: $(APP)
|
|||||||
|
|
||||||
$(APP): $(GOSRC)
|
$(APP): $(GOSRC)
|
||||||
make -C collectors
|
make -C collectors
|
||||||
|
make -C sinks
|
||||||
go get
|
go get
|
||||||
go build -o $(APP) $(GOSRC_APP)
|
go build -o $(APP) $(GOSRC_APP)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
make -C collectors clean
|
@for COMP in $(COMPONENT_DIRS); do if [ -e $$COMP/Makefile ]; then make -C $$COMP clean; fi; done
|
||||||
rm -f $(APP)
|
rm -f $(APP)
|
||||||
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
|
@ -3,3 +3,9 @@ all: libganglia.so
|
|||||||
|
|
||||||
libganglia.so:
|
libganglia.so:
|
||||||
@find /usr -name "libganglia.so*" -exec ln -s {} libganglia.so \;
|
@find /usr -name "libganglia.so*" -exec ln -s {} libganglia.so \;
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f libganglia.so
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user