mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] Distibuted clean and mrproper handling 6/6
Date: Tue, 10 Sep 2002 23:11:25 +0200	[thread overview]
Message-ID: <20020910231125.F18386@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

The makefiles that know what files to be deleted does now 
specify them using
clean := files
and
mrproper := files

Additionally all programs build using host-progs are deleted as well.
This allowed us to remove a central list of files in the top-level makefile,
and by moving the responsibility out to the makefiles that has the knowledge
there is a good chance the information will stay updated.

	Sam

diff -Nru a/Makefile b/Makefile
--- a/Makefile	Tue Sep 10 22:38:08 2002
+++ b/Makefile	Tue Sep 10 22:38:08 2002
@@ -604,41 +604,11 @@
 CLEAN_FILES += \
 	include/linux/compile.h \
 	vmlinux System.map \
-	drivers/char/consolemap_deftbl.c drivers/video/promcon_tbl.c \
-	drivers/char/conmakehash \
-	drivers/char/drm/*-mod.c \
-	drivers/char/defkeymap.c drivers/char/qtronixmap.c \
-	drivers/pci/devlist.h drivers/pci/classlist.h drivers/pci/gen-devlist \
-	drivers/zorro/devlist.h drivers/zorro/gen-devlist \
-	sound/oss/bin2hex sound/oss/hex2hex \
-	drivers/atm/fore200e_mkfirm drivers/atm/{pca,sba}*{.bin,.bin1,.bin2} \
-	drivers/scsi/aic7xxx/aic7xxx_seq.h \
-	drivers/scsi/aic7xxx/aic7xxx_reg.h \
-	drivers/scsi/aic7xxx/aicasm/aicasm_gram.c \
-	drivers/scsi/aic7xxx/aicasm/aicasm_scan.c \
-	drivers/scsi/aic7xxx/aicasm/y.tab.h \
-	drivers/scsi/aic7xxx/aicasm/aicasm \
-	drivers/scsi/53c700_d.h drivers/scsi/sim710_d.h \
-	drivers/scsi/53c7xx_d.h drivers/scsi/53c7xx_u.h \
-	drivers/scsi/53c8xx_d.h drivers/scsi/53c8xx_u.h \
-	net/802/cl2llc.c net/802/transit/pdutr.h net/802/transit/timertr.h \
-	net/802/pseudo/pseudocode.h \
-	net/khttpd/make_times_h net/khttpd/times.h \
 	submenu*
 
 # 	files removed with 'make mrproper'
 MRPROPER_FILES += \
 	include/linux/autoconf.h include/linux/version.h \
-	drivers/net/hamradio/soundmodem/sm_tbl_{afsk1200,afsk2666,fsk9600}.h \
-	drivers/net/hamradio/soundmodem/sm_tbl_{hapn4800,psk4800}.h \
-	drivers/net/hamradio/soundmodem/sm_tbl_{afsk2400_7,afsk2400_8}.h \
-	drivers/net/hamradio/soundmodem/gentbl \
-	sound/oss/*_boot.h sound/oss/.*.boot \
-	sound/oss/msndinit.c \
-	sound/oss/msndperm.c \
-	sound/oss/pndsperm.c \
-	sound/oss/pndspini.c \
-	drivers/atm/fore200e_*_fw.c drivers/atm/.fore200e_*.fw \
 	.version .config* config.in config.old \
 	.menuconfig.log \
 	include/asm \
@@ -658,6 +628,8 @@
 
 clean:	archclean
 	@echo 'Cleaning up'
+	@if [ -f $(obj)/.$@ ]; then rm -f `cat $(obj)/.$@`; fi;
+	@rm -f $(obj)/.$@
 	@find . -name SCCS -prune -o -name BitKeeper -prune -o \
 		\( -name \*.[oas] -o -name core -o -name .\*.cmd -o \
 		-name .\*.tmp -o -name .\*.d \) -type f -print \
@@ -667,12 +639,13 @@
 
 mrproper: clean archmrproper
 	@echo 'Making mrproper'
+	@if [ -f $(obj)/.$@ ]; then rm -f `cat $(obj)/.$@`; fi;
+	@rm -f .$@
 	@find . -name SCCS -prune -o -name BitKeeper -prune -o \
 		\( -name .depend -o -name .\*.cmd \) \
 		-type f -print | xargs rm -f
 	@rm -f $(MRPROPER_FILES)
 	@rm -rf $(MRPROPER_DIRS)
-	@$(MAKE) -C scripts mrproper
 	@$(MAKE) -f Documentation/DocBook/Makefile mrproper
 
 distclean: mrproper

      parent reply	other threads:[~2002-09-10 21:06 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 ` [PATCH] kbuild: clean and mrproper file list created dynamically 1/6 Sam Ravnborg
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 ` Sam Ravnborg [this message]

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=20020910231125.F18386@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®