xref: /titanic_52/usr/src/man/man3perl/Makefile (revision abaa65c888454bd18b57728a7bf6de5ba661abf3)
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
14include ../../Makefile.master
15
16MANSECT =	3perl
17
18MANFILES =	Exacct.3perl			\
19	 	Exacct\:\:Catalog.3perl		\
20	 	Exacct\:\:File.3perl		\
21	 	Exacct\:\:Object.3perl		\
22	 	Exacct\:\:Object\:\:Group.3perl \
23	 	Exacct\:\:Object\:\:Item.3perl	\
24	 	Kstat.3perl			\
25	 	Lgrp.3perl			\
26	 	Privilege.3perl			\
27	 	Project.3perl			\
28	 	Task.3perl			\
29	 	Ucred.3perl
30
31.KEEP_STATE:
32
33include ../Makefile.man
34
35#
36# When KEEP_STATE is in effect and a target has a colon in the name (like the
37# Exacct::* pages above, dmake will write them to the state file unescaped,
38# creating a file which then cannot be reparsed, breaking any build other than
39# the first in this directory:
40#
41# See CR 6987108 make will write un-escaped :'s to .make.state, break itself
42#
43# As a workaround, install the files manually in a FRC target.
44CMD= $(INS) -s -m $(FILEMODE) -f $(ROOTMAN)/man$(MANSECT)
45install: FRC
46	@for file in $(MANFILES); do					\
47		if [[ $$file -nt $(ROOTMAN)/man$(MANSECT)/$$file ]]; then \
48			$(ECHO) $(CMD) $$file;				\
49			$(RM) $(ROOTMAN)/man$(MANSECT)/$$file;		\
50			$(CMD) $$file;					\
51		fi							\
52	done;
53