A patch for binutils
H.J. Lu
hjl@lucon.org
Mon Mar 2 16:09:00 GMT 1998
Hi,
"make ***tar.gz" failed to update a few generated files. I added
a few new targets to handle it.
Thanks.
--
H.J. Lu (hjl@gnu.org)
---
Mon Mar 2 07:23:32 1998 H.J. Lu (hjl@gnu.org)
* Makefile.am (diststuff, distclean-diststuff): New targets.
(distclean): Also depend on distclean-diststuff.
* Makefile.in: Rebuilt.
Index: ld/Makefile.am
===================================================================
RCS file: /home/work/cvs/gnu/binutils/ld/Makefile.am,v
retrieving revision 1.1.1.7
retrieving revision 1.12
diff -u -r1.1.1.7 -r1.12
--- ld/Makefile.am 1998/03/02 17:30:30 1.1.1.7
+++ ld/Makefile.am 1998/03/02 22:50:10 1.12
@@ -669,6 +678,13 @@
for f in ldscripts/*; do \
$(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
done
+
+diststuff: $(GENERATED_CFILES) $(GENERATED_HFILES)
+
+distclean-diststuff:
+ rm -f ldemul-list.h
+
+distclean: distclean-diststuff
# Targets to rebuild dependencies in this Makefile.
# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
Mon Mar 2 07:23:32 1998 H.J. Lu (hjl@gnu.org)
* Makefile.am (GENERATED_CFILES, GENERATED_HFILES): New.
(diststuff): New target.
* Makefile.in: Rebuilt.
Index: gas/Makefile.am
===================================================================
RCS file: /home/work/cvs/gnu/binutils/gas/Makefile.am,v
retrieving revision 1.1.1.7
retrieving revision 1.3
diff -u -r1.1.1.7 -r1.3
--- gas/Makefile.am 1998/03/02 17:27:50 1.1.1.7
+++ gas/Makefile.am 1998/03/02 22:50:06 1.3
@@ -340,6 +340,9 @@
OBJS = $(CONFIG_OBJS) $(GENERIC_OBJS)
+GENERATED_CFILES=itbl-lex.c itbl-parse.c
+GENERATED_HFILES=itbl-parse.h
+
noinst_PROGRAMS = as-new gasp-new
noinst_SCRIPTS = .gdbinit
@@ -614,6 +617,8 @@
de-stage3:
- (cd stage3 ; rm -f as$(EXEEXT) ; mv -f * ..)
- rmdir stage3
+
+diststuff: $(GENERATED_CFILES) $(GENERATED_HFILES)
# Automatic dependency computation. This is a real pain, because the
# dependencies change based on target_cpu_type and obj_format. We
Mon Mar 2 07:23:32 1998 H.J. Lu (hjl@gnu.org)
* Makefile.am (diststuff, distclean-diststuff): New targets.
(distclean): Also depend on distclean-diststuff.
* Makefile.in: Rebuilt.
Index: binutils/Makefile.am
===================================================================
RCS file: /home/work/cvs/gnu/binutils/binutils/Makefile.am,v
retrieving revision 1.1.1.5
retrieving revision 1.5
diff -u -r1.1.1.5 -r1.5
--- binutils/Makefile.am 1998/03/02 17:30:10 1.1.1.5
+++ binutils/Makefile.am 1998/03/02 22:50:04 1.5
@@ -239,6 +239,14 @@
$(BULIBS)
windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@
+diststuff: $(GENERATED_CFILES) $(GENERATED_HFILES)
+
+distclean-diststuff:
+ rm -f underscore.c stamp-under sysinfo nlmheader.h sysroff.c \
+ sysroff.h
+
+distclean: distclean-diststuff
+
# Targets to rebuild dependencies in this Makefile.
# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
More information about the Gas2
mailing list