$OpenBSD: patch-Makefile_rules,v 1.1.1.1 2004/08/03 17:47:12 danh Exp $ --- Makefile.rules.orig Fri Feb 13 17:42:28 2004 +++ Makefile.rules Tue Aug 3 09:56:55 2004 @@ -202,14 +202,20 @@ uninstalllibs: installbin: installlocalbin installsubdirbin installlocalbin: $(INSTALLBINPROGS) - @if test "$(INSTALLBINPROGS) $(INSTALLBINSCRIPTS)" != " "; then \ + @if test "X$(INSTALLBINPROGS)" != "X"; then \ $(SHELL) $(top_srcdir)/mkinstalldirs $(INSTALL_PREFIX)$(bindir) ; \ - it="$(INSTALLBINPROGS) $(INSTALLBINSCRIPTS)" ; \ - $(INSTALL) $(INSTALLBINPROGS) $(INSTALLBINSCRIPTS) $(INSTALL_PREFIX)$(bindir) ; \ - for i in $$it ; do \ + $(INSTALL_PROGRAM) $(INSTALLBINPROGS) $(INSTALL_PREFIX)$(bindir) ; \ + for i in $(INSTALLBINPROGS) ; do \ echo "installing $$i in $(INSTALL_PREFIX)$(bindir)"; \ done \ fi + @if test "X$(INSTALLBINSCRIPTS)" != "X"; then \ + $(SHELL) $(top_srcdir)/mkinstalldirs $(INSTALL_PREFIX)$(bindir) ; \ + $(INSTALL_SCRIPT) $(INSTALLBINSCRIPTS) $(INSTALL_PREFIX)$(bindir) ; \ + for i in $(INSTALLBINSCRIPTS) ; do \ + echo "installing $$i in $(INSTALL_PREFIX)$(bindir)"; \ + done \ + fi installsubdirbin: @if test "$(SUBDIRS)" != ""; then \ @@ -243,7 +249,7 @@ installlocalsbin: $(INSTALLSBINPROGS) @if test "$(INSTALLSBINPROGS)" != ""; then \ it="$(INSTALLSBINPROGS)" ; \ $(SHELL) $(top_srcdir)/mkinstalldirs $(INSTALL_PREFIX)$(sbindir) ; \ - $(INSTALL) $(INSTALLSBINPROGS) $(INSTALL_PREFIX)$(sbindir) ; \ + $(INSTALL_PROGRAM) $(INSTALLSBINPROGS) $(INSTALL_PREFIX)$(sbindir) ; \ for i in $$it ; do \ echo "installing $$i in $(INSTALL_PREFIX)$(sbindir)"; \ done \