On Solaris 8, when I build sybtcl , and then I attempt to gmake install, the action breaks in the install-libraries section because there is no include file defined as needing to be installed. The resulting makefile action attempts to execute
install-libraries: libraries
$(mkinstalldirs) $(includedir)
@echo "Installing header files in $(includedir)"
@for i in $(GENERIC_HDRS) ; do \
echo "Installing $$i" ; \
$(INSTALL_DATA) $$i $(includedir) ; \
done;
which doesn't work, because there is no value for GENERIC_HDRS, so i doesn't get an assignment.
I fixed this by adding the code:
install-libraries: libraries
$(mkinstalldirs) $(includedir)
@echo "Installing header files in $(includedir)"
@for i in $(GENERIC_HDRS) x ; do \
if test "$$i" != "x" ; then \
echo "Installing $$i" ; \
$(INSTALL_DATA) $$i $(includedir) ; \
fi ; \
done;
and thus at least the loop is entered, doing nothing.