diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-07-15 22:34:31 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-07-15 22:34:31 +0200 |
commit | 11c957c2160d40b3339d162d95fe0376df31d84f (patch) | |
tree | 999049e3d0dfe022cd10e29eeefd6d0ae5fe9c5b /Makefile.in | |
parent | 6426b0ca5dc727c0878fe3ec0cdcc12e2648d966 (diff) | |
download | crosstool-ng-11c957c2160d40b3339d162d95fe0376df31d84f.tar.gz crosstool-ng-11c957c2160d40b3339d162d95fe0376df31d84f.tar.bz2 crosstool-ng-11c957c2160d40b3339d162d95fe0376df31d84f.zip |
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.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index 1ccf8fd8..d0b63ee4 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 "$@" |