From: Sam Ravnborg <sam@ravnborg.org>
To: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] kbuild: clean and mrproper file list created dynamically 1/6
Date: Tue, 10 Sep 2002 23:01:57 +0200 [thread overview]
Message-ID: <20020910230157.A18386@mars.ravnborg.org> (raw)
In-Reply-To: <20020910225530.A17094@mars.ravnborg.org>; from sam@ravnborg.org on Tue, Sep 10, 2002 at 10:55:30PM +0200
o Create infrastructure in Rules.make to allow the individual makefiles
to specify what files shall be deleted during clean and mrproper
o Add .clean and .mrproper to ignore list
Sam
diff -Nru a/Rules.make b/Rules.make
--- a/Rules.make Tue Sep 10 22:37:37 2002
+++ b/Rules.make Tue Sep 10 22:37:37 2002
@@ -405,6 +405,27 @@
targets += $(host-progs-single) $(host-progs-multi-objs) $(host-progs-multi)
+# Saved generated files that needs cleaning up later.
+# Filename are saved in $(objtree)/.clean and $(objtree)/.mrproper
+# When make clean or make mrproper is executed, the files listed
+# are deleted, and the file itselt is deleted.
+# To add files to the list set clean or mrproper equal to the
+# file, before inclusion of Rules.make. Rules.amke will prefix the
+# file with the full directory path.
+# ===========================================================================
+clean := $(addprefix $(CURDIR)/,$(clean))
+clean-file := $(objtree)/.clean
+tmp := $(if $(clean),\
+$(shell (if [ -f $(clean-file) ]; then cat $(clean-file); fi;\
+echo $(clean)) | sort -u > $(clean-file)))
+
+mrproper := $(addprefix $(CURDIR)/,$(mrproper) \
+$(host-progs-single) $(host-progs-multi) $(host-progs-multi-objs))
+mrproper-file := $(objtree)/.mrproper
+tmp := $(if $(mrproper),\
+$(shell (if [ -f $(mrproper-file) ]; then cat $(mrproper-file); fi;\
+echo $(mrproper)) | sort -u > $(mrproper-file)))
+
endif # ! modules_install
endif # ! fastdep
next prev parent reply other threads:[~2002-09-10 20:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-10 20:55 [PATCH] kbuild: Make filelist for clean and mrproper distributed 0/6 Sam Ravnborg
2002-09-10 21:01 ` Sam Ravnborg [this message]
2002-09-10 21:03 ` [PATCH] atm: List files to be deleted during clean and mrproper 2/6 Sam Ravnborg
2002-09-10 21:05 ` [PATCH] sound/oss: Files to be deleted during mrproper 3/6 Sam Ravnborg
2002-09-10 21:06 ` [PATCH] drivers/pci,hamradio,scsi,aic7xxx,video,zorro clean and mrproper files 4/6 Sam Ravnborg
2002-09-11 1:07 ` Justin T. Gibbs
2002-09-11 5:12 ` Sam Ravnborg
2002-09-13 15:49 ` Andrew Bray
2002-09-13 17:37 ` ADMIN: DON'T try to be clever with email headers! Matti Aarnio
2002-09-13 23:16 ` Andrew Bray
2002-09-14 11:30 ` Matti Aarnio
2002-09-14 12:05 ` Matthias Andree
2002-09-13 18:00 ` [PATCH] drivers/pci,hamradio,scsi,aic7xxx,video,zorro clean and mrproper files 4/6 Sam Ravnborg
2002-09-10 21:09 ` [PATCH] scripts: Removed mrproper targets, they are now handled automagically 5/6 Sam Ravnborg
2002-09-10 21:11 ` [PATCH] Distibuted clean and mrproper handling 6/6 Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020910230157.A18386@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®