From: Eric Munson <[EMAIL PROTECTED]>

When install is called with a single source file it treats the second
argument as a path ending in a file name.  So when install is called
with a single header (hugetlbfs.h) to go into /path/to/install/include,
include becomes the file name for hugetlbfs.h.  This patch changes the
call to install to force the destination to be treated as a directory and
install the listed source file(s) in that directory.

Singed-off-by: Eric B Munson <[EMAIL PROTECTED]>

---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 763b28d..9f5fa8a 100644
--- a/Makefile
+++ b/Makefile
@@ -275,7 +275,8 @@ objscript.%: %
 install: libs tools $(OBJDIRS:%=%/install) $(INSTALL_OBJSCRIPT:%=objscript.%)
        @$(VECHO) INSTALL
        $(INSTALL) -d $(DESTDIR)$(LDSCRIPTDIR)
-       $(INSTALL) -m 644 $(INSTALL_HEADERS) $(HEADERDIR)
+       $(INSTALL) -d $(HEADERDIR)
+       $(INSTALL) -m 644 -t $(HEADERDIR) $(INSTALL_HEADERS)
        $(INSTALL) -m 644 $(INSTALL_LDSCRIPTS:%=ldscripts/%) 
$(DESTDIR)$(LDSCRIPTDIR)
        $(INSTALL) -d $(DESTDIR)$(BINDIR)
        $(INSTALL) -d $(DESTDIR)$(EXEDIR)
-- 
1.5.6.1


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to