This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] run-cgen-all
- From: Doug Evans <dje at sebabeach dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 19 Dec 2002 09:52:52 -0800 (PST)
- Subject: [patch] run-cgen-all
Ok to check in?
2002-12-19 Doug Evans <dje@sebabeach.org>
* Makefile.am (CGEN_CPUS): New variable.
(run-cgen-all): New rule.
* Makefile.in: Regenerate.
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/opcodes/Makefile.am,v
retrieving revision 1.59
diff -u -p -r1.59 Makefile.am
--- Makefile.am 7 Nov 2002 14:33:48 -0000 1.59
+++ Makefile.am 19 Dec 2002 17:42:08 -0000
@@ -342,6 +342,8 @@ CGENDEPS = \
$(CGENDIR)/opc-opinst.scm \
cgen-asm.in cgen-dis.in cgen-ibld.in
+CGEN_CPUS = fr30 frv ip2k m32r openrisc xstormy16
+
if CGEN_MAINT
IP2K_DEPS = stamp-ip2k
M32R_DEPS = stamp-m32r
@@ -364,6 +366,11 @@ run-cgen:
"$(options)" $(extrafiles)
touch stamp-${prefix}
.PHONY: run-cgen
+
+# Maintainer utility rule to regenerate all cgen files.
+run-cgen-all:
+ $(MAKE) $(patsubst %,stamp-%,$(CGEN_CPUS))
+.PHONY: run-cgen-all
# For now, require developers to configure with --enable-cgen-maint.
$(srcdir)/ip2k-desc.h $(srcdir)/ip2k-desc.c $(srcdir)/ip2k-opc.h $(srcdir)/ip2k-opc.c $(srcdir)/ip2k-ibld.c $(srcdir)/ip2k-asm.c $(srcdir)/ip2k-dis.c: $(IP2K_DEPS)
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/opcodes/Makefile.in,v
retrieving revision 1.65
diff -u -p -r1.65 Makefile.in
--- Makefile.in 7 Nov 2002 14:33:48 -0000 1.65
+++ Makefile.in 19 Dec 2002 17:42:09 -0000
@@ -409,6 +409,7 @@ CGENDEPS = \
$(CGENDIR)/opc-opinst.scm \
cgen-asm.in cgen-dis.in cgen-ibld.in
+CGEN_CPUS = fr30 frv ip2k m32r openrisc xstormy16
@CGEN_MAINT_TRUE@IP2K_DEPS = @CGEN_MAINT_TRUE@stamp-ip2k
@CGEN_MAINT_FALSE@IP2K_DEPS =
@CGEN_MAINT_TRUE@M32R_DEPS = @CGEN_MAINT_TRUE@stamp-m32r
@@ -860,6 +861,11 @@ run-cgen:
"$(options)" $(extrafiles)
touch stamp-${prefix}
.PHONY: run-cgen
+
+# Maintainer utility rule to regenerate all cgen files.
+run-cgen-all:
+ $(MAKE) $(patsubst %,stamp-%,$(CGEN_CPUS))
+.PHONY: run-cgen-all
# For now, require developers to configure with --enable-cgen-maint.
$(srcdir)/ip2k-desc.h $(srcdir)/ip2k-desc.c $(srcdir)/ip2k-opc.h $(srcdir)/ip2k-opc.c $(srcdir)/ip2k-ibld.c $(srcdir)/ip2k-asm.c $(srcdir)/ip2k-dis.c: $(IP2K_DEPS)