aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2008-10-09 10:39:46 +0100
committerEric B Munson <ebmunson@us.ibm.com>2008-10-09 15:19:22 +0100
commitdaa242cb764656874daa2591b018f7e015645344 (patch)
tree9a8a0ae53f71c7463dad59f3b6a8c74a1857fd5d /Makefile
parentb1ed33702a2089c39786649dc3f0d766590e2a43 (diff)
downloadlibhugetlbfs-daa242cb764656874daa2591b018f7e015645344.tar.gz
Add a manual page for get_huge_pages() and free_huge_pages()
This patch adds a basic manual page for get_huge_pages and free_huge_pages(). 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--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bbe9024..dd9dbd0 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ INSTALL_OBJ_LIBS = libhugetlbfs.so libhugetlbfs.a
BIN_OBJ_DIR=obj
INSTALL_BIN = hugectl hugeedit
INSTALL_HEADERS = hugetlbfs.h
+INSTALL_MAN3 = get_huge_pages.3
INSTALL_MAN7 = libhugetlbfs.7
INSTALL_MAN8 = hugectl.8 hugeedit.8
LDSCRIPT_TYPES = B BDT
@@ -110,6 +111,7 @@ LDSCRIPTDIR = $(PREFIX)/share/libhugetlbfs/ldscripts
BINDIR = $(PREFIX)/share/libhugetlbfs
EXEDIR = $(PREFIX)/bin
DOCDIR = $(PREFIX)/share/doc/libhugetlbfs
+MANDIR3 = $(PREFIX)/man/man3
MANDIR7 = $(PREFIX)/man/man7
MANDIR8 = $(PREFIX)/man/man8
@@ -299,6 +301,12 @@ install: libs tools $(OBJDIRS:%=%/install) $(INSTALL_OBJSCRIPT:%=objscript.%)
for x in $(INSTALL_OBJSCRIPT); do \
$(INSTALL) -m 755 objscript.$$x $(DESTDIR)$(BINDIR)/$$x; done
@$(VECHO) INSTALLMAN $(DESTDIR)manX
+ for x in $(INSTALL_MAN3); do \
+ $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR3); \
+ gzip -f $(DESTDIR)$(MANDIR3)/$$x; \
+ done
+ rm -f $(DESTDIR)$(MANDIR3)/free_huge_pages.3.gz
+ ln -s $(DESTDIR)$(MANDIR3)/get_huge_pages.3.gz $(DESTDIR)$(MANDIR3)/free_huge_pages.3.gz
for x in $(INSTALL_MAN7); do \
$(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR7); \
gzip -f $(DESTDIR)$(MANDIR7)/$$x; \