2 # man/Makefile man/ Makefile for the net-tools Package
4 # NET-TOOLS A collection of programs that form the base set of the
5 # NET-3 Networking Distribution for the LINUX operating
8 # Version: Makefile 0.03 (2000-10-08)
10 # Authors: Bernd Eckenfels <net-tools@lina.inka.de>
11 # Arnaldo Carvalhoa de Melo <acme@conectiva.com.br>
12 # Copyright 1995-1996 Bernd Eckebnfels, Germany
13 # 1998 Arnaldo Carvalho de Melo, Brazil
15 #960322 {0.01} Bernd Eckenfels: creation to make main Makefile cleaner
16 #980701 {0.02} Arnaldo C. Melo: making the main Makefile *more* cleaner :)
17 #001008 {0.03} Bernd Eckenfels: RH patch for FHS (man page now in mandir)
20 # This program is free software; you can redistribute it
21 # and/or modify it under the terms of the GNU General
22 # Public License as published by the Free Software
23 # Foundation; either version 2 of the License, or (at
24 # your option) any later version.
30 -include ..
/config.make
32 LANGS
=`ls -d * | grep -v Makefile`
40 rm -f DEADJOE
*~
*.orig
41 rm -f
*/DEADJOE
*/*~
*/*.orig
47 for LANG in
$$LANGS; do \
49 for SECTION in
1 5 8; do \
50 if
[ "$$LANG" = "en_US" ] ; then \
51 MAN_DIR
=${BASEDIR}${mandir}/man
$$SECTION; \
53 MAN_DIR
=${BASEDIR}${mandir}/$$LANG/man
$$SECTION; \
55 CMDS
=`ls *.$$SECTION`; \
56 [ -z
"$$CMDS" ] && continue
; \
57 $(INSTALL
) -d
-m
755 $$MAN_DIR; \
58 for CMD in
$$CMDS; do \
59 $(INSTALL
) -m
644 $$CMD $$MAN_DIR; \
65 # End of man/Makefile.