Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcmips/stand add clean and distclean targets. Cle...



details:   https://anonhg.NetBSD.org/src/rev/9c9829360433
branches:  trunk
changeset: 480437:9c9829360433
user:      cgd <cgd%NetBSD.org@localhost>
date:      Wed Jan 12 19:19:16 2000 +0000

description:
add clean and distclean targets.  Clean cleans out build-generated bits.
Distclean does that, plus removes other files windows is likely to
generate to make things unclean (.opt workspace options files, as well
as automatically updated versions of .dsp/.dsw files).  This means
that if you distclean: your workspace options may be reset to the defaults
(hey, you did tell it to clean everything out!), and any modifications
that you incorrectly made to the .dsp/.dsw files w/o using the templates
and UNIX-based auto-generation will be clobbered.

diffstat:

 sys/arch/hpcmips/stand/Makefile |  25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 288d3ae281c6 -r 9c9829360433 sys/arch/hpcmips/stand/Makefile
--- a/sys/arch/hpcmips/stand/Makefile   Wed Jan 12 19:18:00 2000 +0000
+++ b/sys/arch/hpcmips/stand/Makefile   Wed Jan 12 19:19:16 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2000/01/12 02:33:56 cgd Exp $
+# $NetBSD: Makefile,v 1.2 2000/01/12 19:19:16 cgd Exp $
 #
 # Makefile to generate windows VC++ project and workspace files from
 # config files and templates
@@ -10,3 +10,26 @@
            $$dir/$$dir.config; \
        done
        sh dspgen/gen_workspace.sh hpcmips_stand.dsw $(PROJECT_DIRS)
+
+# remote transient build-related files globally and for each project:
+#      * global 'class view' information (.ncb)
+#      * Debug and Release compile dirs,
+#      * .plg files (build logs), and
+#      * .[0-9][0-9][0-9] files (old versions of auto-converted .dsp files).
+
+clean:
+       rm -f hpcmips_stand.ncb
+       for dir in $(PROJECT_DIRS); do \
+           (cd $$dir && rm -rf WMIPSDbg WMIPSRel); \
+           (cd $$dir && rm -f $$dir.plg $$dir.[0-9][0-9][0-9]); \
+       done
+
+# remove all files which windows is likely to have created, in addition
+# to transient build-related files:
+#      * .opt workspace option file
+#      * (probably automatic) updates to the .dsp and .dsw files,
+#        which should be identical to the auto-generated versions when
+#        clean.
+
+distclean cleandir: clean winfiles
+       rm -f hpcmips_stand.opt



Home | Main Index | Thread Index | Old Index