URL: <http://savannah.gnu.org/bugs/?33129>
Summary: MAKEOVERRIDES reset after a recursive 'make restart' Project: make Submitted by: None Submitted on: Tue 19 Apr 2011 08:35:21 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.82 Operating System: Any Fixed Release: None Triage Status: None _______________________________________________________ Details: Hi, It seems there is a problem with MAKEOVERRIDES that is reset when a recursive make restarts itself (after rebuilding an included Makefile). The following Makefile: all:; @echo M1=${MAKEOVERRIDES}; rm -f test.mk; ${MAKE} fail fail:; @echo M2=${MAKEOVERRIDES}; rm -f test.mk -include test.mk test.mk:; @touch $@ produces the following output when run with `make VAR=x`: M1=VAR=x M2= Commenting out either the '-include' or the test.mk rule will output: M1=VAR=x M2=VAR=x I'm not sure which is wrong, but it seems at least inconsistent. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?33129> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make