From: Jim Kingdon Date: Tue, 6 Jul 1993 18:56:48 +0000 (+0000) Subject: * Makefile.in: Remove gdb before creating a new one. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2153bf2ba548be79fd1995ccedefac44a7705d6;p=binutils-gdb.git * Makefile.in: Remove gdb before creating a new one. Update init.c atomically. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a83d2b8ad10..c844b540919 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Tue Jul 6 11:51:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * Makefile.in: Remove gdb before creating a new one. + Update init.c atomically. + * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}. (ALLCONFIG): Add config/alpha/alpha-osf1.mh. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 8d21ccb2374..cc3118e7615 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -461,9 +461,14 @@ uninstall: force @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do init.c: munch $(OBS) $(TSOBS) - $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(TSOBS) > init.c + $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(TSOBS) > init.c-new + mv init.c-new init.c +.PRECIOUS: init.c + +# Removing the old gdb first works better if it is running, at least on SunOS. gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o + rm -f gdb $(CC-LD) $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdb \ init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES)