manpages/Makefile.man.master
author asano
Mon, 16 Feb 2009 16:25:04 +0900
changeset 96 dc5ffb97e96b
child 98 f94e05507565
permissions -rw-r--r--
SUNWman Japanese localization by community phase 1 (2009/02/09)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
96
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     1
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     2
# CDDL HEADER START
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     3
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     7
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     8
# You can obtain a copy of the license at $(SRC)/OPENSOLARIS.LICENSE
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    10
# See the License for the specific language governing permissions
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    11
# and limitations under the License.
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    12
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    14
# file and include the License file at $(SRC)/OPENSOLARIS.LICENSE.
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    18
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    19
# CDDL HEADER END
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    20
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    21
# Copyright (c) 1991, Sun Microsystems, Inc.
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    22
# Copyright (c) 1991, Nihon Sun Microsystems K.K.
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    23
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    24
.KEEP_STATE:
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    25
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    26
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    27
# include master Makefile
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    28
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    29
include		$(SRC)/Makefile.master
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    30
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    31
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    32
# reset suffix definition not to cause unexpected rules
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    33
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    34
.SUFFIXES:
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    35
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    36
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    37
# pass targets to child Makefiles
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    38
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    39
all:=		TARGET= all
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    40
install:=	TARGET= install
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    41
clean:=		TARGET= clean
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    42
clobber:=	TARGET= clobber
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    43
lint:=		TARGET= lint
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    44
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    45
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    46
# switch modes of files and directoried, manpages of OpenWindows have
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    47
# different mode from others
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    48
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    49
OWNER2		= bin
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    50
GROUP2		= bin
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    51
FILEMODE2	= 0444
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    52
DIROWNER2	= bin
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    53
DIRGROUP2	= bin
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    54
DIRMODE2	= 0755
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    55
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    56
OWNER2OWMODE	= bin
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    57
GROUP2OWMODE	= bin
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    58
FILEMODE2OWMODE	= 0444
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    59
DIROWNER2OWMODE	= root
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    60
DIRGROUP2OWMODE	= bin
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    61
DIRMODE2OWMODE	= 0775
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    62
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    63
OWNER		= $(OWNER2$(OWMODE))
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    64
GROUP		= $(GROUP2$(OWMODE))
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    65
FILEMODE	= $(FILEMODE2$(OWMODE))
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    66
DIROWNER	= $(DIROWNER2$(OWMODE))
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    67
DIRGROUP	= $(DIRGROUP2$(OWMODE))
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    68
DIRMODE		= $(DIRMODE2$(OWMODE))
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    69
SLOWNER		= root
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    70
SLGROUP		= sys
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    71
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    72
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    73
## replace the definition in Makefile.master
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    74
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    75
INS             = /usr/sbin/install
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    76
INS.dir		= $(INS) -s -d -m $(DIRMODE) $@
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    77
$(CH)INS.dir	= $(INS) -s -d -m $(DIRMODE) -u $(DIROWNER) -g $(DIRGROUP) $@
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    78
INS.file=       $(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $<
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    79
# installs and renames at once
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    80
INS.rename=     $(INS.file); $(MV) $(@D)/$(<F) $@
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    81
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    82
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    83
# aliases for real locale names
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    84
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    85
LOCALE		= ja_JP.UTF-8
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    86
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    87
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    88
# names of symbolic links required by man command,
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    89
# to define RPATH_LIBMAC.??? is up to child Makefile
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    90
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    91
MANMACROS	= tmac.an
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    92
MANMACROSSUN	= tmac.ansun
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    93
TMACAN		= $(RPATH_LIBTMAC)/an.$(LOCALE)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    94
TMACANSUN	= $(RPATH_LIBTMAC)/ansun.$(LOCALE)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    95
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    96
## for creating directories, but can be refered only for local make
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    97
## at JFP build, directories are created by upper Makefiles
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    98
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
    99
# /usr/share/man
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   100
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   101
$(MANDIR) $(MANDIR)/:
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   102
	$(INS.dir)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   103
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   104
# /usr/share/man/<locale>
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   105
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   106
$(MANDIR)/$(LOCALE):	$(MANDIR)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   107
	$(INS.dir)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   108
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   109
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   110
# create symbolic links
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   111
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   112
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   113
$(MANDIR)/$(LOCALE)/$(MANMACROS):
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   114
	@if [ ! -h $@ ]; then \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   115
		$(RM) $@; \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   116
		$(SYMLINK) $(TMACAN.utf8) $@; \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   117
		$(CHOWN) $(SLOWNER) $@; \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   118
		$(CHGRP) $(SLGROUP) $@; \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   119
	fi
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   120
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   121
$(MANDIR)/$(LOCALE)/$(MANMACROSSUN):
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   122
	@if [ ! -h $@ ]; then \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   123
		$(RM) $@; \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   124
		$(SYMLINK) $(TMACANSUN.utf8) $@; \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   125
		$(CHOWN) $(SLOWNER) $@; \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   126
		$(CHGRP) $(SLGROUP) $@; \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   127
	fi
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   128
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   129
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   130
# define required directory names, to define MANDIR is up to
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   131
# child Makefiles
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   132
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   133
SECTDIRS	= $(MANDIRS:%=$(MANDIR)/$(LOCALE)/$(DIRPREFIX)%)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   134
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   135
$(SECTDIRS):		$(MANDIR)/$(LOCALE) \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   136
			$(MANDIR)/$(LOCALE)/$(MANMACROS) \
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   137
			$(MANDIR)/$(LOCALE)/$(MANMACROSSUN)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   138
	$(INS.dir)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   139
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   140
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   141
# define all manpage files as make-target,
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   142
# it's a tricky way, so that this list has to cover all possible MANDIRS
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   143
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   144
MANDIRS_TRICK.base	= man1/% man1m/% man4/%
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   145
MANDIRS_TRICK		= ${MANDIRS_TRICK.base:%=$(DIRPREFIX)%}
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   146
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   147
MANTARGETS	= $(MANDIRS_TRICK:%=$(MANDIR)/$(LOCALE)/%)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   148
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   149
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   150
# define how to install manpages into prototype hierarchy
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   151
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   152
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   153
$(MANTARGETS):	%
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   154
	$(INS.file)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   155
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   156
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   157
# mapping of variables between real directory names
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   158
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   159
MANDIR_1	= $(DIRPREFIX)man1
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   160
MANDIR_1M	= $(DIRPREFIX)man1m
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   161
MANDIR_4	= $(DIRPREFIX)man4
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   162
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   163
##################
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   164
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   165
MANSECTION	= $(MANPAGES$(SECTION))
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   166
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   167
DIR		= $(MANDIR)/$(LOCALE)/$(MANDIR_$(SECTION))
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   168
all:		$(MANSECTION)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   169
install:	$(DIR) $(MANSECTION:%=$(DIR)/%)
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   170
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   171
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   172
# targets for cleaning source tree
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   173
#
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   174
clean:
dc5ffb97e96b SUNWman Japanese localization by community phase 1 (2009/02/09)
asano
parents:
diff changeset
   175