Makefile: skip comments with leading whitespace
This commit is contained in:
parent
e3103bdb6e
commit
a4bb625812
2
Makefile
2
Makefile
|
@ -17,7 +17,7 @@ $(TARGET_FILE): $(INPUT_FILE) $(PLUGIN_FILES) $(CONFIGURATION_FILE)
|
||||||
@export VERSION="$(VERSION)"; \
|
@export VERSION="$(VERSION)"; \
|
||||||
export "PLUGINS=$(PLUGINS)"; \
|
export "PLUGINS=$(PLUGINS)"; \
|
||||||
export CONF=$$(grep -v '^#' "$(CONFIGURATION_FILE)"); \
|
export CONF=$$(grep -v '^#' "$(CONFIGURATION_FILE)"); \
|
||||||
export PLSTR="$$(grep -vh '^#' $(PLUGIN_FILES))"; \
|
export PLSTR="$$(grep -vh '^[ \t]*#' $(PLUGIN_FILES))"; \
|
||||||
perl -p -e '\
|
perl -p -e '\
|
||||||
s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \
|
s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \
|
||||||
s/\@\@CONF\@\@/$$ENV{"CONF"}/; \
|
s/\@\@CONF\@\@/$$ENV{"CONF"}/; \
|
||||||
|
|
Loading…
Reference in New Issue