mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
Makefile: simplify script assembling
This commit is contained in:
parent
92eb719a8b
commit
160a767791
1 changed files with 4 additions and 7 deletions
11
Makefile
11
Makefile
|
@ -10,16 +10,13 @@ TGZ_FILE ?= $(DIST_DIR)/muninlite-$(VERSION).tar.gz
|
|||
|
||||
|
||||
$(TARGET_FILE): $(INPUT_FILE) $(PLUGIN_FILES) $(CONFIGURATION_FILE)
|
||||
@echo "Making munin-node for muninlite version $$VERSION"
|
||||
@for plugin_filename in $(PLUGIN_FILES); do \
|
||||
echo "Adding plugin $$(basename "$$plugin_filename")"; done
|
||||
@export VERSION="$(VERSION)"; \
|
||||
export CONF=$$(grep -v '^#' "$(CONFIGURATION_FILE)"); \
|
||||
export "PLUGINS=$(PLUGINS)"; \
|
||||
echo "Making munin-node for muninlite version $$VERSION"; \
|
||||
export PLSTR=""; \
|
||||
for PLGIN in $(PLUGIN_FILES); \
|
||||
do \
|
||||
echo "Adding plugin $$(basename "$$PLGIN")"; \
|
||||
PLSTR=$$(printf "%s\n" "$$PLSTR"; grep -v '^#' "$$PLGIN"); \
|
||||
done; \
|
||||
export PLSTR="$$(grep -vh '^#' $(PLUGIN_FILES))"; \
|
||||
perl -p -e '\
|
||||
s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \
|
||||
s/\@\@CONF\@\@/$$ENV{"CONF"}/; \
|
||||
|
|
Loading…
Reference in a new issue