Makefile: use proper indentation for assembling command

This commit is contained in:
Lars Kruse 2020-02-06 07:59:27 +01:00
parent 160a767791
commit 936ac8199c

View file

@ -14,17 +14,17 @@ $(TARGET_FILE): $(INPUT_FILE) $(PLUGIN_FILES) $(CONFIGURATION_FILE)
@for plugin_filename in $(PLUGIN_FILES); do \ @for plugin_filename in $(PLUGIN_FILES); do \
echo "Adding plugin $$(basename "$$plugin_filename")"; done echo "Adding plugin $$(basename "$$plugin_filename")"; done
@export VERSION="$(VERSION)"; \ @export VERSION="$(VERSION)"; \
export CONF=$$(grep -v '^#' "$(CONFIGURATION_FILE)"); \ export "PLUGINS=$(PLUGINS)"; \
export "PLUGINS=$(PLUGINS)"; \ export CONF=$$(grep -v '^#' "$(CONFIGURATION_FILE)"); \
export PLSTR="$$(grep -vh '^#' $(PLUGIN_FILES))"; \ export PLSTR="$$(grep -vh '^#' $(PLUGIN_FILES))"; \
perl -p -e '\ perl -p -e '\
s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \ s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \
s/\@\@CONF\@\@/$$ENV{"CONF"}/; \ s/\@\@CONF\@\@/$$ENV{"CONF"}/; \
s/\@\@PLUGINS\@\@/$$ENV{"PLUGINS"}/; \ s/\@\@PLUGINS\@\@/$$ENV{"PLUGINS"}/; \
s/\@\@PLSTR\@\@/$$ENV{"PLSTR"}/;' \ s/\@\@PLSTR\@\@/$$ENV{"PLSTR"}/;' \
"$(INPUT_FILE)" >"$(TARGET_FILE).tmp" "$(INPUT_FILE)" >"$(TARGET_FILE).tmp"
@chmod +x "$(TARGET_FILE).tmp" @chmod +x "$(TARGET_FILE).tmp"
@mv "$(TARGET_FILE).tmp" "$(TARGET_FILE)" @mv "$(TARGET_FILE).tmp" "$(TARGET_FILE)"
.PHONY: help .PHONY: help
help: help: