This is the mail archive of the cgen@sourceware.org mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: remove dups from cgen/cpu?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]