aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2008-10-09 10:39:44 +0100
committerEric B Munson <ebmunson@us.ibm.com>2008-10-09 15:19:20 +0100
commitd565cc96ef0c684d57598605ea8f1b7372654a66 (patch)
tree0b3b9111c2a5a811f15049ea207d7467f7611849 /Makefile
parentdb6f93b3c6b32f94be14171bb27c8f468f3700af (diff)
downloadlibhugetlbfs-d565cc96ef0c684d57598605ea8f1b7372654a66.tar.gz
Add a manual page for hugectl
This patch adds a basic manual page for hugectl. 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--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 82cdeb6..2765e2b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ BIN_OBJ_DIR=obj
INSTALL_BIN = hugectl hugeedit
INSTALL_HEADERS = hugetlbfs.h
INSTALL_MAN7 = libhugetlbfs.7
+INSTALL_MAN8 = hugectl.8
LDSCRIPT_TYPES = B BDT
LDSCRIPT_DIST_ELF = elf32ppclinux elf64ppc elf_i386 elf_x86_64
INSTALL_OBJSCRIPT = ld.hugetlbfs
@@ -110,6 +111,7 @@ BINDIR = $(PREFIX)/share/libhugetlbfs
EXEDIR = $(PREFIX)/bin
DOCDIR = $(PREFIX)/share/doc/libhugetlbfs
MANDIR7 = $(PREFIX)/man/man7
+MANDIR8 = $(PREFIX)/man/man8
ifdef LIB32
LIBPATHS += -DLIB32='"$(LIB32)"' -DLIBDIR32='"$(LIBDIR32)"'
@@ -286,6 +288,7 @@ install: libs tools $(OBJDIRS:%=%/install) $(INSTALL_OBJSCRIPT:%=objscript.%)
$(INSTALL) -d $(DESTDIR)$(LDSCRIPTDIR)
$(INSTALL) -d $(DESTDIR)$(HEADERDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR7)
+ $(INSTALL) -d $(DESTDIR)$(MANDIR8)
$(INSTALL) -m 644 -t $(DESTDIR)$(HEADERDIR) $(INSTALL_HEADERS)
$(INSTALL) -m 644 $(INSTALL_LDSCRIPTS:%=ldscripts/%) $(DESTDIR)$(LDSCRIPTDIR)
$(INSTALL) -d $(DESTDIR)$(BINDIR)
@@ -300,6 +303,10 @@ install: libs tools $(OBJDIRS:%=%/install) $(INSTALL_OBJSCRIPT:%=objscript.%)
$(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR7); \
gzip -f $(DESTDIR)$(MANDIR7)/$$x; \
done
+ for x in $(INSTALL_MAN8); do \
+ $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR8); \
+ gzip -f $(DESTDIR)$(MANDIR8)/$$x; \
+ done
cd $(DESTDIR)$(BINDIR) && ln -sf ld.hugetlbfs ld
install-docs: