aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2008-10-10 17:05:22 +0100
committerEric B Munson <ebmunson@us.ibm.com>2008-10-13 10:08:49 +0100
commit936e8bb6ad6076488e88fedc7a0a0f90b18dbad4 (patch)
treead4e15b548184a485f9860810aeb3869a3b4077a /Makefile
parent3c19bd26af2600fd6bc9918981ee602e12f87e7a (diff)
downloadlibhugetlbfs-936e8bb6ad6076488e88fedc7a0a0f90b18dbad4.tar.gz
Add a manual page for pagesize
This patch adds a basic manual page for the pagesize utility. 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--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9d2e229..193b780 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_MAN1 = pagesize.1
INSTALL_MAN3 = get_huge_pages.3 gethugepagesizes.3 getpagesizes.3
INSTALL_MAN7 = libhugetlbfs.7
INSTALL_MAN8 = hugectl.8 hugeedit.8
@@ -111,6 +112,7 @@ LDSCRIPTDIR = $(PREFIX)/share/libhugetlbfs/ldscripts
BINDIR = $(PREFIX)/share/libhugetlbfs
EXEDIR = $(PREFIX)/bin
DOCDIR = $(PREFIX)/share/doc/libhugetlbfs
+MANDIR1 = $(PREFIX)/man/man1
MANDIR3 = $(PREFIX)/man/man3
MANDIR7 = $(PREFIX)/man/man7
MANDIR8 = $(PREFIX)/man/man8
@@ -301,6 +303,10 @@ 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_MAN1); do \
+ $(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR1); \
+ gzip -f $(DESTDIR)$(MANDIR1)/$$x; \
+ done
for x in $(INSTALL_MAN3); do \
$(INSTALL) -m 444 man/$$x $(DESTDIR)$(MANDIR3); \
gzip -f $(DESTDIR)$(MANDIR3)/$$x; \