The headers are not being installed to the correct path when DESTDIR is
used. This is awkward when building libhugetlbfs for distribution packages,
particularly Debian.

Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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


-------------------------------------------------------------------------
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