Makefile: skip comments with leading whitespace

This commit is contained in:
Lars Kruse 2020-02-08 23:41:48 +01:00
parent e3103bdb6e
commit a4bb625812
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ $(TARGET_FILE): $(INPUT_FILE) $(PLUGIN_FILES) $(CONFIGURATION_FILE)
@export VERSION="$(VERSION)"; \
export "PLUGINS=$(PLUGINS)"; \
export CONF=$$(grep -v '^#' "$(CONFIGURATION_FILE)"); \
export PLSTR="$$(grep -vh '^#' $(PLUGIN_FILES))"; \
export PLSTR="$$(grep -vh '^[ \t]*#' $(PLUGIN_FILES))"; \
perl -p -e '\
s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \
s/\@\@CONF\@\@/$$ENV{"CONF"}/; \