aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2008-10-09 10:39:43 +0100
committerEric B Munson <ebmunson@us.ibm.com>2008-10-09 15:19:19 +0100
commitdb6f93b3c6b32f94be14171bb27c8f468f3700af (patch)
tree4090296107e8476d1f32a70eb228f3f6c5516bd1 /Makefile
parenta69618ad5dc72bc8f75767b0ccd487b3eb7fc4e8 (diff)
downloadlibhugetlbfs-db6f93b3c6b32f94be14171bb27c8f468f3700af.tar.gz
Add a manual page for libhugetlbfs
This patch adds a basic manual page for libhugetlbfs. It points the user to the HOWTO for detailed instructions and is intended as a brief synopisis for the environment variables. 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 2917166..82cdeb6 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_MAN7 = libhugetlbfs.7
LDSCRIPT_TYPES = B BDT
LDSCRIPT_DIST_ELF = elf32ppclinux elf64ppc elf_i386 elf_x86_64
INSTALL_OBJSCRIPT = ld.hugetlbfs
@@ -108,6 +109,7 @@ LDSCRIPTDIR = $(PREFIX)/share/libhugetlbfs/ldscripts
BINDIR = $(PREFIX)/share/libhugetlbfs
EXEDIR = $(PREFIX)/bin
DOCDIR = $(PREFIX)/share/doc/libhugetlbfs
+MANDIR7 = $(PREFIX)/man/man7
ifdef LIB32
LIBPATHS += -DLIB32='"$(LIB32)"' -DLIBDIR32='"$(LIBDIR32)"'
@@ -283,6 +285,7 @@ install: libs tools $(OBJDIRS:%=%/install) $(INSTALL_OBJSCRIPT:%=objscript.%)
@$(VECHO) INSTALL
$(INSTALL) -d $(DESTDIR)$(LDSCRIPTDIR)
$(INSTALL) -d $(DESTDIR)$(HEADERDIR)
+ $(INSTALL) -d $(DESTDIR)$(MANDIR7)
$(INSTALL) -m 644 -t $(DESTDIR)$(HEADERDIR) $(INSTALL_HEADERS)
$(INSTALL) -m 644 $(INSTALL_LDSCRIPTS:%=ldscripts/%) $(DESTDIR)$(LDSCRIPTDIR)
$(INSTALL) -d $(DESTDIR)$(BINDIR)
@@ -292,6 +295,11 @@ install: libs tools $(OBJDIRS:%=%/install) $(INSTALL_OBJSCRIPT:%=objscript.%)
$(INSTALL) -m 755 $(BIN_OBJ_DIR)/$$x $(DESTDIR)$(EXEDIR); done
for x in $(INSTALL_OBJSCRIPT); do \
$(INSTALL) -m 755 objscript.$$x $(DESTDIR)$(BINDIR)/$$x; done
+ @$(VECHO) INSTALLMAN $(DESTDIR)manX
+ for x in $(INSTALL_MAN7); do \
+ $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR7); \
+ gzip -f $(DESTDIR)$(MANDIR7)/$$x; \
+ done
cd $(DESTDIR)$(BINDIR) && ln -sf ld.hugetlbfs ld
install-docs: