aboutsummaryrefslogtreecommitdiff
blob: 4ef1af8c7d4b6d3aeb97995398b660d76c53e864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# man/Makefile	man/ Makefile for the net-tools Package
#
# NET-TOOLS	A collection of programs that form the base set of the
#		NET-3 Networking Distribution for the LINUX operating
#		system.
#
# Version:	Makefile 0.03 (2000-10-08)
#
# Authors:	Bernd Eckenfels <net-tools@lina.inka.de>
#               Arnaldo Carvalhoa de Melo <acme@conectiva.com.br>
#		Copyright 1995-1996 Bernd Eckebnfels, Germany
#                              1998 Arnaldo Carvalho de Melo, Brazil
#
#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
#	Public  License as  published  by  the  Free  Software
#	Foundation;  either  version 2 of the License, or  (at
#	your option) any later version.
#

INSTALL=install
mandir=/usr/share/man

-include ../config.make
ifeq ($(I18N),1)
LANGS=`ls -d * | grep -v Makefile`
else
LANGS=en_US
endif

all:

clean:
		rm -f DEADJOE *~ *.orig
		rm -f */DEADJOE */*~ */*.orig

clobber:	clean

install:
		LANGS=$(LANGS) ; \
		for LANG in $$LANGS; do \
			cd $$LANG; \
			for SECTION in 1 5 8; do \
				if [ "$$LANG" = "en_US" ] ; then \
					MAN_DIR=${BASEDIR}${mandir}/man$$SECTION; \
				else \
					MAN_DIR=${BASEDIR}${mandir}/$$LANG/man$$SECTION; \
				fi ; \
				CMDS=`ls *.$$SECTION`; \
				[ -z "$$CMDS" ] && continue; \
				$(INSTALL) -d -m 755 $$MAN_DIR; \
				for CMD in $$CMDS; do \
					$(INSTALL) -m 644 $$CMD $$MAN_DIR; \
				done; \
			done; \
			cd ..; \
		done

# End of man/Makefile.