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