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