LWN.net Logo

scripts: Removed mrproper targets, they are now handled automagically 5/6

From:  Sam Ravnborg <sam@ravnborg.org>
To:  Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject:  [PATCH] scripts: Removed mrproper targets, they are now handled automagically 5/6
Date:  Tue, 10 Sep 2002 23:09:45 +0200

Removed mrproper targets from scripts/Makefile and scripts/lxdialog/Makefile
The new clean: and mrproper: handling will delete the files in question.

For lxdialog added a few files that could be left if build were stopped
unexpected.

	Sam

diff -Nru a/scripts/Makefile b/scripts/Makefile
--- a/scripts/Makefile	Tue Sep 10 22:38:01 2002
+++ b/scripts/Makefile	Tue Sep 10 22:38:01 2002
@@ -9,6 +9,8 @@
 # conmakehash:	 Create arrays for initializing the kernel console tables
 # tkparse: 	 Used by xconfig
 
+clean    := kconfig.tk
+
 all: fixdep split-include docproc conmakehash __chmod
 
 # The following temporary rule will make sure that people's
@@ -57,9 +59,4 @@
 $(obj)/split-include $(obj)/docproc $(addprefix $(obj)/,$(tkparse-objs)) \
 $(obj)/conmakehash lxdialog: $(obj)/fixdep
 
-mrproper:
-	@echo 'Making mrproper (scripts)'
-	@rm -f $(tkparse-objs) $(obj)/kconfig.tk
-	@rm -f core $(host-progs)
-	@$(MAKE) -C lxdialog mrproper
 
diff -Nru a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile
--- a/scripts/lxdialog/Makefile	Tue Sep 10 22:38:01 2002
+++ b/scripts/lxdialog/Makefile	Tue Sep 10 22:38:01 2002
@@ -15,8 +15,12 @@
 endif
 endif
 
-host-progs := lxdialog
+# Files removed during make clean
+clean := a.out lxtemp.c
 
+# Host executable
+host-progs := lxdialog
+# Additional object files for lxdialog
 lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \
 		 util.o lxdialog.o msgbox.o
 
@@ -39,5 +43,3 @@
 		exit 1 ;\
 	fi
 
-mrproper:
-	@rm -f core $(host-progs) $(lxdialog-objs) ncurses
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2002, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds