* Makefile (mcs.exe) [PROFILE=default]: Keep a copy of mcs.exe in
authorRaja R Harinath <harinath@hurrynot.org>
Tue, 30 Nov 2004 08:02:26 +0000 (08:02 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Tue, 30 Nov 2004 08:02:26 +0000 (08:02 -0000)
the current directory to help debugging.

svn path=/trunk/mcs/; revision=36828

mcs/mcs/ChangeLog
mcs/mcs/Makefile

index 6216d361e04a2a4bae6eee35ae09734146d357ce..d5906fcdfbd6c67ce08cd8a99907b7e53fd79c22 100755 (executable)
@@ -1,3 +1,8 @@
+2004-11-30  Raja R Harinath  <rharinath@novell.com>
+
+       * Makefile (mcs.exe) [PROFILE=default]: Keep a copy of mcs.exe in
+       the current directory to help debugging.
+
 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
 \r
        * class (GetClassBases): Better error 60 report.\r
index 7e5488db440e07db5969008f960e22cf1e82f6e9..235f5e3125499fc9a04fe0869f6ff0423c0ffbd9 100644 (file)
@@ -15,13 +15,21 @@ EXTRA_DISTFILES = \
 PROGRAM = $(topdir)/class/lib/$(PROFILE)/mcs.exe
 PROGRAM_COMPILE = $(BOOT_COMPILE)
 
-CLEAN_FILES = y.output
+CLEAN_FILES = y.output *.exe *.mdb
 
 cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
        $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
 
 include ../build/executable.make
 
+ifeq (default, $(PROFILE))
+# Utility rule to make debugging somewhat easier.
+all-local: mcs.exe
+mcs.exe: $(PROGRAM)
+       cp -p $< $@
+       test ! -f $<.mdb || cp -p $<.mdb $@.mdb
+endif
+
 # Testing targets
 
 TIME = time