mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-11-13 07:11:12 +01:00
Makefile: use proper indentation for assembling command
This commit is contained in:
parent
160a767791
commit
936ac8199c
1 changed files with 11 additions and 11 deletions
22
Makefile
22
Makefile
|
@ -14,17 +14,17 @@ $(TARGET_FILE): $(INPUT_FILE) $(PLUGIN_FILES) $(CONFIGURATION_FILE)
|
|||
@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)"; \
|
||||
export PLSTR="$$(grep -vh '^#' $(PLUGIN_FILES))"; \
|
||||
perl -p -e '\
|
||||
s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \
|
||||
s/\@\@CONF\@\@/$$ENV{"CONF"}/; \
|
||||
s/\@\@PLUGINS\@\@/$$ENV{"PLUGINS"}/; \
|
||||
s/\@\@PLSTR\@\@/$$ENV{"PLSTR"}/;' \
|
||||
"$(INPUT_FILE)" >"$(TARGET_FILE).tmp"
|
||||
@chmod +x "$(TARGET_FILE).tmp"
|
||||
@mv "$(TARGET_FILE).tmp" "$(TARGET_FILE)"
|
||||
export "PLUGINS=$(PLUGINS)"; \
|
||||
export CONF=$$(grep -v '^#' "$(CONFIGURATION_FILE)"); \
|
||||
export PLSTR="$$(grep -vh '^#' $(PLUGIN_FILES))"; \
|
||||
perl -p -e '\
|
||||
s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \
|
||||
s/\@\@CONF\@\@/$$ENV{"CONF"}/; \
|
||||
s/\@\@PLUGINS\@\@/$$ENV{"PLUGINS"}/; \
|
||||
s/\@\@PLSTR\@\@/$$ENV{"PLSTR"}/;' \
|
||||
"$(INPUT_FILE)" >"$(TARGET_FILE).tmp"
|
||||
@chmod +x "$(TARGET_FILE).tmp"
|
||||
@mv "$(TARGET_FILE).tmp" "$(TARGET_FILE)"
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
|
|
Loading…
Reference in a new issue