xref: /titanic_41/usr/src/man/Makefile.man (revision c10c16dec587a0662068f6e2991c29ed3a9db943)
1*c10c16deSRichard Lowe#
2*c10c16deSRichard Lowe# This file and its contents are supplied under the terms of the
3*c10c16deSRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0.
4*c10c16deSRichard Lowe# You may only use this file in accordance with the terms of version
5*c10c16deSRichard Lowe# 1.0 of the CDDL.
6*c10c16deSRichard Lowe#
7*c10c16deSRichard Lowe# A full copy of the text of the CDDL should have accompanied this
8*c10c16deSRichard Lowe# source.  A copy of the CDDL is also available via the Internet
9*c10c16deSRichard Lowe# at http://www.illumos.org/license/CDDL.
10*c10c16deSRichard Lowe#
11*c10c16deSRichard Lowe
12*c10c16deSRichard Lowe# Copyright 2011, Richard Lowe
13*c10c16deSRichard Lowe
14*c10c16deSRichard LoweROOTMAN			= $(ROOT)/usr/share/man
15*c10c16deSRichard LoweROOTHASMAN		= $(ROOT)/usr/has/man
16*c10c16deSRichard Lowe
17*c10c16deSRichard LoweFILEMODE= 0444
18*c10c16deSRichard Lowe
19*c10c16deSRichard Lowe# The manual section being built, client Makefiles must set this to, for e.g.
20*c10c16deSRichard Lowe# "3perl", with case matching that of the section name as installed.
21*c10c16deSRichard Lowe#
22*c10c16deSRichard Lowe# MANSECT=
23*c10c16deSRichard Lowe
24*c10c16deSRichard LoweROOTMANFILES = 	$(MANFILES:%=$(ROOTMAN)/man$(MANSECT)/%)
25*c10c16deSRichard Lowe
26*c10c16deSRichard LoweCLOBBERFILES = $(MANSOFILES)
27*c10c16deSRichard Lowe
28*c10c16deSRichard Lowe$(ROOTMAN)/man$(MANSECT)/% $(ROOTHASMAN)/man$(MANSECT)/%: %
29*c10c16deSRichard Lowe	$(INS.file)
30*c10c16deSRichard Lowe
31*c10c16deSRichard Lowe$(MANSOFILES):
32*c10c16deSRichard Lowe	$(RM) $@; $(ECHO) ".so $(SOSRC)" > $@
33*c10c16deSRichard Lowe
34*c10c16deSRichard Loweall:
35*c10c16deSRichard Lowe
36*c10c16deSRichard Loweclean:
37*c10c16deSRichard Lowe
38*c10c16deSRichard Loweclobber:
39*c10c16deSRichard Lowe	$(RM) $(CLOBBERFILES)
40*c10c16deSRichard Lowe
41*c10c16deSRichard Lowelint:
42*c10c16deSRichard Lowe
43*c10c16deSRichard Lowe.PARALLEL:
44*c10c16deSRichard Lowe
45*c10c16deSRichard LoweFRC:
46