URL: <http://savannah.gnu.org/bugs/?30463>
Summary: cannot make include makefile .INTERMEDIATE Project: make Submitted by: None Submitted on: Fri 16 Jul 2010 03:42:34 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.80 Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: The following little makefile never terminates: .INTERMEDIATE: x.mk include x.mk x.mk: echo "all:; echo ok" > x.mk I would like it to remove x.mk after the make process is done. Same behavior in 3.81 The following is a trace of make -rd This program built for x86_64-unknown-linux-gnu Reading makefiles... Reading makefile `oops.mk'... Reading makefile `x.mk' (search path) (no ~ expansion)... oops.mk:2: x.mk: No such file or directory Updating makefiles.... Considering target file `x.mk'. File `x.mk' does not exist. Finished prerequisites of target file `x.mk'. Must remake target `x.mk'. echo "all:; echo ok" > x.mk Putting child 0x00537980 (x.mk) PID 14120 on the chain. Live child 0x00537980 (x.mk) PID 14120 Reaping winning child 0x00537980 PID 14120 Removing child 0x00537980 PID 14120 from chain. Successfully remade target file `x.mk'. Considering target file `oops.mk'. Looking for an implicit rule for `oops.mk'. No implicit rule found for `oops.mk'. Finished prerequisites of target file `oops.mk'. No need to remake target `oops.mk'. Removing intermediate files... rm x.mk Re-executing[2]: gmake -f oops.mk -rd GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30463> _______________________________________________ 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