diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-06 18:56:48 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-06 18:56:48 +0000 |
commit | c2153bf2ba548be79fd1995ccedefac44a7705d6 (patch) | |
tree | 4a37af547706a9b4811a3934a26a5ed097a2ca53 /gdb/Makefile.in | |
parent | 768328bc1b25cd5d72a9275000771bb019d78154 (diff) | |
download | gdb-c2153bf2ba548be79fd1995ccedefac44a7705d6.zip gdb-c2153bf2ba548be79fd1995ccedefac44a7705d6.tar.gz gdb-c2153bf2ba548be79fd1995ccedefac44a7705d6.tar.bz2 |
* Makefile.in: Remove gdb before creating a new one.
Update init.c atomically.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 8d21ccb..cc3118e 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) |