From: proski Date: Fri, 21 Aug 2009 21:42:58 +0000 (+0000) Subject: 2009-08-21 Pavel Roskin X-Git-Tag: 1.98~614 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5496c37ebe22262cc7f65fc7dc16f7b8ab446b8d;p=thirdparty%2Fgrub.git 2009-08-21 Pavel Roskin * Makefile.in (install-local): When checking if a file is in the build directory, use "test -e" to detect symlinks. --- diff --git a/ChangeLog b/ChangeLog index bcb720151..e245d2da8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-08-21 Pavel Roskin + * Makefile.in (install-local): When checking if a file is in the + build directory, use "test -e" to detect symlinks. + * Makefile.in (install-local): Remove all files in $(DESTDIR)$(pkglibdir) before installing new files there. diff --git a/Makefile.in b/Makefile.in index 3d97c3985..8e2cdc6c4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -222,7 +222,7 @@ install-local: all $(SHELL) $(mkinstalldirs) $(DESTDIR)$(includedir) @list='$(include_DATA)'; \ for file in $$list; do \ - if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ + if test -e "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ dest="`echo $$file | sed 's,include/,,'`"; \ destdir="`echo $$dest | sed 's,[^/]*$$,,g'`"; \ $(SHELL) $(mkinstalldirs) $(DESTDIR)$(includedir)/$$destdir; \