This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
Re: remove dups from cgen/cpu?
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Doug Evans <dje at sebabeach dot org>
- Cc: fche at redhat dot com, cgen at sourceware dot org
- Date: Fri, 24 Jul 2009 19:05:56 +0100
- Subject: Re: remove dups from cgen/cpu?
- References: <20090709160851.B60D36E3D1@sebabeach.org>
Doug Evans wrote:
> Hi.
>
> I think it's time to remove the duplicates in src/cgen/cpu
> and keep just the copies in src/cpu.
>
> Any objections?
None here, but how about doing this while we're at it?
cgen/ChangeLog:
* Makefile.am (ARCHFILE): Search both cpu/ subdirs, with priority
to top-level cpu/ over cgen/cpu/.
* Makefile.in: Regenerate.
cheers,
DaveK
Index: cgen/Makefile.am
===================================================================
RCS file: /cvs/src/src/cgen/Makefile.am,v
retrieving revision 1.8
diff -p -u -r1.8 Makefile.am
--- cgen/Makefile.am 13 Jul 2009 20:55:21 -0000 1.8
+++ cgen/Makefile.am 24 Jul 2009 17:46:39 -0000
@@ -7,7 +7,7 @@ SUBDIRS = doc testsuite
GUILE = "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi`" -l $(srcdir)/guile.scm -s
CGENFLAGS = -v
ARCH = @arch@
-ARCHFILE = $(srcroot)/cpu/$(ARCH).cpu
+ARCHFILE = $(firstword $(wildcard $(srcroot)/cpu/$(ARCH).cpu $(srcroot)/cgen/cpu/$(ARCH).cpu))
# for various utility rules
MACHS = all