Subject: | Some ifdef-ed lines remain processed (looks like parsing error) |
Attempt to run makepp on attached makefile causes errors, in my case:
exec UPDATED_VAR += abc failed--No such file or directory
It is caused by the fact, that (as --dump-makefile confirms) interpretation of the following snippet leaves UPDATED_VAR += abc in the makefile. What is amazing: removing almost anything (for example comment or empty else) resolves the problem.
ifdef SOMEVAR_1
ifdef SOMEVAR_2
# TODO: blah blah
ifndef SOMEVAR_3
ifdef SOMEVAR_4
else
endif
endif
UPDATED_VAR += abc
endif
endif
To reproduce:
makepp -f makepp_problems.mak
PS Makefile is asbsurdish but I got it while tracing problem in actual complicated makefile...
Subject: | makepp_problems.mak |
# makepp (tested on 2.0.98.3) raises errors here,
# caused by the fact that UPDATED_VAR remains in the output.
#
# See also
# makepp --dump-makefile=/tmp/makepp_problems.mak -f makepp_problems.mak
# cat /tmp/makepp_problems.mak
.PHONY: all
all :
@echo Hello
ifdef SOMEVAR_1
ifdef SOMEVAR_2
# TODO: blah blah
ifndef SOMEVAR_3
ifdef SOMEVAR_4
else
endif
endif
UPDATED_VAR += abc
endif
endif