added mandir= and default it to /usr/share/man (patch from Jeff Johnson, RH)
authorBernd Eckenfels <net-tools@lina.inka.de>
Sun, 8 Oct 2000 00:12:30 +0000 (00:12 +0000)
committerBernd Eckenfels <net-tools@lina.inka.de>
Sun, 8 Oct 2000 00:12:30 +0000 (00:12 +0000)
man/Makefile

index ebf04df..4ef1af8 100644 (file)
@@ -5,7 +5,7 @@
 #              NET-3 Networking Distribution for the LINUX operating
 #              system.
 #
-# Version:     Makefile 0.02 (1998-07-01)
+# Version:     Makefile 0.03 (2000-10-08)
 #
 # Authors:     Bernd Eckenfels <net-tools@lina.inka.de>
 #               Arnaldo Carvalhoa de Melo <acme@conectiva.com.br>
@@ -14,6 +14,8 @@
 #
 #960322        {0.01}  Bernd Eckenfels:        creation to make main Makefile cleaner
 #980701        {0.02}  Arnaldo C. Melo:        making the main Makefile *more* cleaner :)
+#001008 {0.03}  Bernd Eckenfels:       RH patch for FHS (man page now in mandir)
+#
 #
 #      This program is free software; you can redistribute it
 #      and/or  modify it under  the terms of  the GNU General
@@ -23,6 +25,7 @@
 #
 
 INSTALL=install
+mandir=/usr/share/man
 
 -include ../config.make
 ifeq ($(I18N),1)
@@ -45,9 +48,9 @@ install:
                        cd $$LANG; \
                        for SECTION in 1 5 8; do \
                                if [ "$$LANG" = "en_US" ] ; then \
-                                       MAN_DIR=${BASEDIR}/usr/man/man$$SECTION; \
+                                       MAN_DIR=${BASEDIR}${mandir}/man$$SECTION; \
                                else \
-                                       MAN_DIR=${BASEDIR}/usr/man/$$LANG/man$$SECTION; \
+                                       MAN_DIR=${BASEDIR}${mandir}/$$LANG/man$$SECTION; \
                                fi ; \
                                CMDS=`ls *.$$SECTION`; \
                                [ -z "$$CMDS" ] && continue; \