summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-07-15 20:34:31 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-07-15 20:34:31 (GMT)
commit11c957c2160d40b3339d162d95fe0376df31d84f (patch)
tree999049e3d0dfe022cd10e29eeefd6d0ae5fe9c5b /Makefile.in
parent6426b0ca5dc727c0878fe3ec0cdcc12e2648d966 (diff)
configure: fix --mandir
--mandir points to the base dir of the man pages, so we have to append our man section below given dir.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 1ccf8fd..d0b63ee 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -59,6 +59,11 @@ readelf:= @@readelf@@
patch := @@patch@@
###############################################################################
+# Non-configure variables
+MAN_SECTION := 1
+MAN_SUBDIR := /man$(MAN_SECTION)
+
+###############################################################################
# Sanity checks
# Check if Makefile is up to date:
@@ -241,11 +246,11 @@ install-doc: $(DESTDIR)$(DOCDIR)
$(install) -m 644 "$${doc_file}" "$(DESTDIR)$(DOCDIR)"; \
done
-install-man: $(DESTDIR)$(MANDIR)
+install-man: $(DESTDIR)$(MANDIR)$(MAN_SUBDIR)
@echo " INST 'ct-ng.1.gz'"
- @$(install) -m 644 docs/ct-ng.1.gz "$(DESTDIR)$(MANDIR)"
+ @$(install) -m 644 docs/ct-ng.1.gz "$(DESTDIR)$(MANDIR)$(MAN_SUBDIR)"
-$(sort $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(DOCDIR) $(DESTDIR)$(MANDIR)):
+$(sort $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(DOCDIR) $(DESTDIR)$(MANDIR)$(MAN_SUBDIR)):
@echo " MKDIR '$@/'"
@$(install) -m 755 -d "$@"