diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-11-05 13:59:31 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-11-05 13:59:31 +0000 |
commit | e2507f812e461c1556c20a3df2cc5c524363078a (patch) | |
tree | f26cbb7de823bce92eff8fc1466ad68b6915882a /gdb/Makefile.in | |
parent | 0a197a969c8a100d2c852649749eb05a099c8f07 (diff) | |
download | gdb-e2507f812e461c1556c20a3df2cc5c524363078a.zip gdb-e2507f812e461c1556c20a3df2cc5c524363078a.tar.gz gdb-e2507f812e461c1556c20a3df2cc5c524363078a.tar.bz2 |
* Makefile.in (init.c): Don't call sed if filename is empty.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 7 |
1 files changed, 5 insertions, 2 deletions
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 |