I am not sure the problem is due to automake 1.5 or src/lib/Makefile.am.
To reproduce the problem, go to src/lib/, and run make install-lyx2lyxSCRIPTS which gives
/bin/sh ../config/mkinstalldirs /usr/share/lyx/lyx2lyx
/usr/bin/install -c lyx2lyx/lyx2lyx /usr/share/lyx/lyx2lyx/lyx2lyx/lyx2lyx
/usr/bin/install: cannot stat `/usr/share/lyx/lyx2lyx/lyx2lyx/lyx2lyx': Not a directory
make: *** [install-lyx2lyxSCRIPTS] Error 1
`make install-scriptsSCRIPTS' gives similar error.
The reason is that in the Makefile produced by automake 1.5, the transform from $p to $f doesn't remove the preceding directories. Thus double directory names appear:
install-lyx2lyxSCRIPTS: $(lyx2lyx_SCRIPTS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(lyx2lyxdir) @list='$(lyx2lyx_SCRIPTS)'; for p in $$list; do \ f="`echo $$p|sed '$(transform)'`"; \ if test -f $$p; then \ echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(lyx2lyxdir)/$$f"; \ $(INSTALL_SCRIPT) $$p $(DESTDIR)$(lyx2lyxdir)/$$f; \ elif test -f $(srcdir)/$$p; then \ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(lyx2lyxdir)/$$f"; \ $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(lyx2lyxdir)/$$f; \ else :; fi; \ done
Is this a problem of automake 1.5? Currently I don't have other versions to test.
--Ling