aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric B Munson <ebmunson@us.ibm.com>2008-10-16 11:36:08 +0100
committerEric B Munson <ebmunson@us.ibm.com>2008-10-16 11:36:08 +0100
commit35e36ac19e2f1b5db40d96d1a2d746c1b65ae276 (patch)
treee6d51360d68e7646346a3c839d5a3764494bca7b /Makefile
parenta02be36548a8a6f508942805051022820d341ef5 (diff)
downloadlibhugetlbfs-35e36ac19e2f1b5db40d96d1a2d746c1b65ae276.tar.gz
Fixing install locations for packaging
The FHS requires that man pages be installed to /usr/share/man* so this patch adjusts the install target for the man pages to $DESTDIR/$PREFIX/share/man and it makes the symlink for free_hugepages use a relative path rather than hard. Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6a4a09c..438d046 100644
--- a/Makefile
+++ b/Makefile
@@ -112,10 +112,10 @@ 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
+MANDIR1 = $(PREFIX)/share/man/man1
+MANDIR3 = $(PREFIX)/share/man/man3
+MANDIR7 = $(PREFIX)/share/man/man7
+MANDIR8 = $(PREFIX)/share/man/man8
ifdef LIB32
LIBPATHS += -DLIB32='"$(LIB32)"' -DLIBDIR32='"$(LIBDIR32)"'
@@ -336,7 +336,7 @@ install: libs tools $(OBJDIRS:%=%/install) $(INSTALL_OBJSCRIPT:%=objscript.%)
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
+ ln -s 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; \