cache-projects.mk: Remove unused ifndef / endif
make/Makefile is responsible to generate $(TOPDIR)/cache-projects.mk. The variables are taken from .cache-project.mk, with some variables intentionally omitted, but their ifndef / endif blocks remain in place. Not harmful but ugly. Make sed range-delete the left-over blocks entirely.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d689d0b8bd
commit
3833fb0988
1 changed files with 1 additions and 1 deletions
|
|
@ -27,5 +27,5 @@ cache-projects: $(CACHE_PROJECTS_MK)
|
|||
clean-cache-projects:
|
||||
rm -f $(CACHE_PROJECTS_MK)
|
||||
$(CACHE_PROJECTS_MK): $(CACHE_PROJECT_MK)
|
||||
sed '/\($(subst $(space),\|,$(CACHED_VARS_ONLY_PROJECT))\)\s*[:?]\?=/ d' $< > $@.tmp
|
||||
sed -E '/^[[:blank:]]*ifndef[[:blank:]]+($(subst $(space),|,$(CACHED_VARS_ONLY_PROJECT)))[[:blank:]]*$$/,/^[[:blank:]]*endif[[:blank:]]*$$/d' $< > $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue