minor fix to return E_USAGE on -V instead of exit(0);
[oss-qm-packages.git] / man / Makefile
blob4ef1af8c7d4b6d3aeb97995398b660d76c53e864
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
6 # system.
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.
27 INSTALL=install
28 mandir=/usr/share/man
30 -include ../config.make
31 ifeq ($(I18N),1)
32 LANGS=`ls -d * | grep -v Makefile`
33 else
34 LANGS=en_US
35 endif
37 all:
39 clean:
40 rm -f DEADJOE *~ *.orig
41 rm -f */DEADJOE */*~ */*.orig
43 clobber: clean
45 install:
46 LANGS=$(LANGS) ; \
47 for LANG in $$LANGS; do \
48 cd $$LANG; \
49 for SECTION in 1 5 8; do \
50 if [ "$$LANG" = "en_US" ] ; then \
51 MAN_DIR=${BASEDIR}${mandir}/man$$SECTION; \
52 else \
53 MAN_DIR=${BASEDIR}${mandir}/$$LANG/man$$SECTION; \
54 fi ; \
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; \
60 done; \
61 done; \
62 cd ..; \
63 done
65 # End of man/Makefile.