This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

PATCH: Use a stamp-h in gdbserver also


Here's a really neat trick stolen from gdb/Makefile.  Saves a lot of
pointless remaking of config.h.  Committed.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

2002-04-09  Daniel Jacobowitz  <drow@mvista.com>

	* gdbserver/Makefile.in: Add stamp-h target.
	* gdbserver/configure.in: Create stamp-h.
	* gdbserver/configure: Regenerated.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/Makefile.in,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile.in
--- Makefile.in	9 Apr 2002 21:16:16 -0000	1.15
+++ Makefile.in	9 Apr 2002 21:23:47 -0000
@@ -199,7 +199,8 @@ maintainer-clean realclean: clean
 
 STAGESTUFF=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb
 
-config.h: config.in config.status
+config.h: stamp-h ; @true
+stamp-h: config.in config.status
 	CONFIG_FILES="" $(SHELL) ./config.status
 
 Makefile: Makefile.in config.status
Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/configure,v
retrieving revision 1.7
diff -u -p -r1.7 configure
--- configure	9 Apr 2002 21:11:35 -0000	1.7
+++ configure	9 Apr 2002 21:23:49 -0000
@@ -1593,6 +1593,10 @@ cat >> $CONFIG_STATUS <<EOF
 
 EOF
 cat >> $CONFIG_STATUS <<\EOF
+case x$CONFIG_HEADERS in
+xconfig.h:config.in)
+echo > stamp-h ;;
+esac
 
 exit 0
 EOF
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/configure.in,v
retrieving revision 1.8
diff -u -p -r1.8 configure.in
--- configure.in	9 Apr 2002 21:11:35 -0000	1.8
+++ configure.in	9 Apr 2002 21:23:49 -0000
@@ -66,4 +66,9 @@ GDBSERVER_DEPFILES="$srv_regobj $srv_tgt
 
 AC_SUBST(GDBSERVER_DEPFILES)
 
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile,
+[case x$CONFIG_HEADERS in
+xconfig.h:config.in)
+echo > stamp-h ;;
+esac
+])


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