aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/Makefile.in7
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8aa8318..3851696 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+Fri Nov 5 05:58:03 1993 Jim Kingdon (kingdon@cygnus.com)
+
+ * Makefile.in (init.c): Don't call sed if filename is empty.
+
Thu Nov 4 08:27:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* dbxread.c (unknown_symchar_complaint): Make message refer to
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 0079713..60e051b 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -505,8 +505,11 @@ init.c: $(OBS) $(TSOBS)
-e '/version.o/d' \
-e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
-e 's/\.o/.c/'` ; \
- sed <$(srcdir)/$$filename >>init.c-tmp -n \
- -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (); \1 ();}/p' ; \
+ case $$filename in \
+ "") ;; \
+ *) sed <$(srcdir)/$$filename >>init.c-tmp -n \
+ -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (); \1 ();}/p' ; ;; \
+ esac ; \
done
@echo '}' >>init.c-tmp
@mv init.c-tmp init.c