Skip to contentSkip to conversation

Temporary menuconfig file not removed by make mrproper

DISCUSSION Stuart MacDonald 2 participants 2 messages Sep 6, 2002 Kbuild

lore
Share & tools
lore
#0 lore raw

linux/scripts/lxdialog/lxtemp.c was left behind after hitting <ctrl-c> during a make menuconfig. clean, distclean and mrproper all failed to remove it.

Not sure how this could be handled for the general case; is there a standard "this is a temporary file" tag that could be used so that clean/mrproper would catch arbitrary temporary files? ie lxtemp~~.c or similar.

..Stu

#1 lore raw
Quoted 3 lines · Stuart MacDonald

linux/scripts/lxdialog/lxtemp.c was left behind after hitting <ctrl-c> during a make menuconfig. clean, distclean and mrproper all failed to remove it.

Attached patch fixes this.

Quoted 4 lines

Not sure how this could be handled for the general case; is there a standard "this is a temporary file" tag that could be used so that clean/mrproper would catch arbitrary temporary files? ie lxtemp~~.c or similar.

In the top-level Makefile there is an ugly long list of generated files, which is removed upon make clean & make mrproper.
I would like to get rid of that one, and build it up when the files are generated. Later...

Sam

===== Makefile 1.3 vs edited =====

Makefile renamed from scripts/lxdialog/Makefile +1 -1
@@ -40,4 +40,4 @@
 	fi
 
 mrproper:
-	@rm -f core $(host-progs) $(lxdialog-objs) ncurses
+	@rm -f core $(host-progs) $(lxdialog-objs) lxtemp.c a.out