aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2008-10-02 10:48:09 +0100
committerEric B Munson <ebmunson@us.ibm.com>2008-10-02 12:35:21 +0100
commit9b903bedc0a97680756c168f8fe4a4e4924ef1fd (patch)
tree7d10fc89a657e8e76094631f7b3e52be50ed5c61 /Makefile
parent1f7f73596ab1aa3e1151766a9471ec68b5f7ba68 (diff)
downloadlibhugetlbfs-9b903bedc0a97680756c168f8fe4a4e4924ef1fd.tar.gz
Fix header installation to use DESTDIR
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 <mel@csn.ul.ie> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0917004..a88f4f8 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)