* Makefile.in (init.c): Don't call sed if filename is empty.

This commit is contained in:
Jim Kingdon 1993-11-05 13:59:31 +00:00
parent 0a197a969c
commit e2507f812e
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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