1*34f9b3eeSRoland Mainz# 2*34f9b3eeSRoland Mainz# CDDL HEADER START 3*34f9b3eeSRoland Mainz# 4*34f9b3eeSRoland Mainz# The contents of this file are subject to the terms of the 5*34f9b3eeSRoland Mainz# Common Development and Distribution License (the "License"). 6*34f9b3eeSRoland Mainz# You may not use this file except in compliance with the License. 7*34f9b3eeSRoland Mainz# 8*34f9b3eeSRoland Mainz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*34f9b3eeSRoland Mainz# or http://www.opensolaris.org/os/licensing. 10*34f9b3eeSRoland Mainz# See the License for the specific language governing permissions 11*34f9b3eeSRoland Mainz# and limitations under the License. 12*34f9b3eeSRoland Mainz# 13*34f9b3eeSRoland Mainz# When distributing Covered Code, include this CDDL HEADER in each 14*34f9b3eeSRoland Mainz# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*34f9b3eeSRoland Mainz# If applicable, add the following below this CDDL HEADER, with the 16*34f9b3eeSRoland Mainz# fields enclosed by brackets "[]" replaced with your own identifying 17*34f9b3eeSRoland Mainz# information: Portions Copyright [yyyy] [name of copyright owner] 18*34f9b3eeSRoland Mainz# 19*34f9b3eeSRoland Mainz# CDDL HEADER END 20*34f9b3eeSRoland Mainz# 21*34f9b3eeSRoland Mainz 22*34f9b3eeSRoland Mainz# 23*34f9b3eeSRoland Mainz# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*34f9b3eeSRoland Mainz# Use is subject to license terms. 25*34f9b3eeSRoland Mainz# 26*34f9b3eeSRoland Mainz 27*34f9b3eeSRoland MainzROOTDOCDIRBASE= $(ROOT)/usr/share/doc/ksh 28*34f9b3eeSRoland Mainz 29*34f9b3eeSRoland MainzDOCFILES= \ 30*34f9b3eeSRoland Mainz RELEASE \ 31*34f9b3eeSRoland Mainz README \ 32*34f9b3eeSRoland Mainz TYPES \ 33*34f9b3eeSRoland Mainz DESIGN \ 34*34f9b3eeSRoland Mainz COMPATIBILITY \ 35*34f9b3eeSRoland Mainz OBSOLETE \ 36*34f9b3eeSRoland Mainz shell_styleguide.docbook \ 37*34f9b3eeSRoland Mainz shell_styleguide.html \ 38*34f9b3eeSRoland Mainz images/tag_bourne.png \ 39*34f9b3eeSRoland Mainz images/tag_i18n.png \ 40*34f9b3eeSRoland Mainz images/tag_ksh88.png \ 41*34f9b3eeSRoland Mainz images/tag_ksh93.png \ 42*34f9b3eeSRoland Mainz images/tag_ksh.png \ 43*34f9b3eeSRoland Mainz images/tag_l10n.png \ 44*34f9b3eeSRoland Mainz images/tag_perf.png \ 45*34f9b3eeSRoland Mainz images/callouts/1.png \ 46*34f9b3eeSRoland Mainz images/callouts/2.png \ 47*34f9b3eeSRoland Mainz images/callouts/3.png \ 48*34f9b3eeSRoland Mainz images/callouts/4.png \ 49*34f9b3eeSRoland Mainz images/callouts/5.png \ 50*34f9b3eeSRoland Mainz images/callouts/6.png \ 51*34f9b3eeSRoland Mainz images/callouts/7.png \ 52*34f9b3eeSRoland Mainz images/callouts/8.png \ 53*34f9b3eeSRoland Mainz images/callouts/9.png \ 54*34f9b3eeSRoland Mainz images/callouts/10.png 55*34f9b3eeSRoland Mainz 56*34f9b3eeSRoland Mainz# Documentation rules 57*34f9b3eeSRoland Mainz$(ROOTDOCDIRBASE)/%: common/% 58*34f9b3eeSRoland Mainz $(INS.file) 59*34f9b3eeSRoland Mainz 60*34f9b3eeSRoland Mainz$(ROOTDOCDIRBASE)/%: misc/% 61*34f9b3eeSRoland Mainz $(INS.file) 62*34f9b3eeSRoland Mainz 63*34f9b3eeSRoland MainzROOTDOCDIRS= \ 64*34f9b3eeSRoland Mainz $(ROOTDOCDIRBASE) .WAIT \ 65*34f9b3eeSRoland Mainz $(ROOTDOCDIRBASE)/images .WAIT \ 66*34f9b3eeSRoland Mainz $(ROOTDOCDIRBASE)/images/callouts 67*34f9b3eeSRoland Mainz 68*34f9b3eeSRoland Mainz$(ROOTDOCDIRBASE)/%.html: misc/%.docbook 69*34f9b3eeSRoland Mainz /usr/bin/xsltproc \ 70*34f9b3eeSRoland Mainz --nonet \ 71*34f9b3eeSRoland Mainz --stringparam generate.section.toc.level 0 \ 72*34f9b3eeSRoland Mainz --stringparam toc.max.depth 3 \ 73*34f9b3eeSRoland Mainz --stringparam toc.section.depth 12 \ 74*34f9b3eeSRoland Mainz --xinclude \ 75*34f9b3eeSRoland Mainz -o "$(@F)" \ 76*34f9b3eeSRoland Mainz /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl \ 77*34f9b3eeSRoland Mainz "$<" >xsltproc.log 2>&1 78*34f9b3eeSRoland Mainz $(INS) -s -m $(FILEMODE) -f "$(@D)" "$(@F)" 79*34f9b3eeSRoland Mainz $(RM) "$(@F)" 80*34f9b3eeSRoland Mainz 81*34f9b3eeSRoland Mainz# Generic documentation rules 82*34f9b3eeSRoland MainzDOCFILESRCDIR= common 83*34f9b3eeSRoland MainzROOTDOCFILES= $(DOCFILES:%=$(ROOTDOCDIRBASE)/%) 84*34f9b3eeSRoland Mainz$(ROOTDOCDIRS) := OWNER = root 85*34f9b3eeSRoland Mainz$(ROOTDOCDIRS) := GROUP = bin 86*34f9b3eeSRoland Mainz$(ROOTDOCDIRS) := DIRMODE = 755 87*34f9b3eeSRoland Mainz 88*34f9b3eeSRoland Mainz$(ROOTDOCDIRS): 89*34f9b3eeSRoland Mainz $(INS.dir) 90*34f9b3eeSRoland Mainz 91*34f9b3eeSRoland Mainzinstall: $(ROOTDOCDIRS) .WAIT $(ROOTDOCFILES) 92