1c10c16deSRichard Lowe# 2c10c16deSRichard Lowe# This file and its contents are supplied under the terms of the 3c10c16deSRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0. 4c10c16deSRichard Lowe# You may only use this file in accordance with the terms of version 5c10c16deSRichard Lowe# 1.0 of the CDDL. 6c10c16deSRichard Lowe# 7c10c16deSRichard Lowe# A full copy of the text of the CDDL should have accompanied this 8c10c16deSRichard Lowe# source. A copy of the CDDL is also available via the Internet 9c10c16deSRichard Lowe# at http://www.illumos.org/license/CDDL. 10c10c16deSRichard Lowe# 11c10c16deSRichard Lowe 12c10c16deSRichard Lowe# Copyright 2011, Richard Lowe 13c10c16deSRichard Lowe 14c10c16deSRichard Loweinclude ../../Makefile.master 15c10c16deSRichard Lowe 16c10c16deSRichard LoweMANSECT = 3perl 17c10c16deSRichard Lowe 18c10c16deSRichard LoweMANFILES = Exacct.3perl \ 19c10c16deSRichard Lowe Exacct\:\:Catalog.3perl \ 20c10c16deSRichard Lowe Exacct\:\:File.3perl \ 21c10c16deSRichard Lowe Exacct\:\:Object.3perl \ 22c10c16deSRichard Lowe Exacct\:\:Object\:\:Group.3perl \ 23c10c16deSRichard Lowe Exacct\:\:Object\:\:Item.3perl \ 24c10c16deSRichard Lowe Kstat.3perl \ 25c10c16deSRichard Lowe Lgrp.3perl \ 26c10c16deSRichard Lowe Privilege.3perl \ 27c10c16deSRichard Lowe Project.3perl \ 28c10c16deSRichard Lowe Task.3perl \ 29c10c16deSRichard Lowe Ucred.3perl 30c10c16deSRichard Lowe 31c10c16deSRichard Lowe.KEEP_STATE: 32c10c16deSRichard Lowe 33c10c16deSRichard Loweinclude ../Makefile.man 34c10c16deSRichard Lowe 35c10c16deSRichard Lowe# 36c10c16deSRichard Lowe# When KEEP_STATE is in effect and a target has a colon in the name (like the 37c10c16deSRichard Lowe# Exacct::* pages above, dmake will write them to the state file unescaped, 38c10c16deSRichard Lowe# creating a file which then cannot be reparsed, breaking any build other than 39c10c16deSRichard Lowe# the first in this directory: 40c10c16deSRichard Lowe# 41c10c16deSRichard Lowe# See CR 6987108 make will write un-escaped :'s to .make.state, break itself 42c10c16deSRichard Lowe# 43c10c16deSRichard Lowe# As a workaround, install the files manually in a FRC target. 44c10c16deSRichard LoweCMD= $(INS) -s -m $(FILEMODE) -f $(ROOTMAN)/man$(MANSECT) 45c10c16deSRichard Loweinstall: FRC 46c10c16deSRichard Lowe @for file in $(MANFILES); do \ 47c10c16deSRichard Lowe if [[ $$file -nt $(ROOTMAN)/man$(MANSECT)/$$file ]]; then \ 48c10c16deSRichard Lowe $(ECHO) $(CMD) $$file; \ 49*a225ef44SRichard Lowe $(RM) $(ROOTMAN)/man$(MANSECT)/$$file; \ 50c10c16deSRichard Lowe $(CMD) $$file; \ 51c10c16deSRichard Lowe fi \ 52c10c16deSRichard Lowe done; 53