aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Munson <ebmunson@us.ibm.com>2008-08-18 10:52:57 -0700
committerEric B Munson <ebmunson@us.ibm.com>2008-08-21 10:51:19 -0700
commit2b7fe9781650db912de9edb29e8679585a81c72b (patch)
treee0dbc7e6f395dd1cd75c1a129cdfdedc903223a1 /Makefile
parent8098bc41d27443605fed36b497ce4a43ea1ae521 (diff)
downloadlibhugetlbfs-2b7fe9781650db912de9edb29e8679585a81c72b.tar.gz
Fix install target for libhuge header files
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 <ebmunson@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5221b9d..aed22e6 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)