1923N/A#
1923N/A# CDDL HEADER START
1923N/A#
1923N/A# The contents of this file are subject to the terms of the
1923N/A# Common Development and Distribution License (the "License").
1923N/A# You may not use this file except in compliance with the License.
1923N/A#
1923N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1923N/A# or http://www.opensolaris.org/os/licensing.
1923N/A# See the License for the specific language governing permissions
1923N/A# and limitations under the License.
1923N/A#
1923N/A# When distributing Covered Code, include this CDDL HEADER in each
1923N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1923N/A# If applicable, add the following below this CDDL HEADER, with the
1923N/A# fields enclosed by brackets "[]" replaced with your own identifying
1923N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1923N/A#
1923N/A# CDDL HEADER END
1923N/A#
1923N/A
1923N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
1923N/A
1923N/APWD:sh = pwd
1923N/A
1923N/ARST2HTML_FLAGS = --rfc-references \
1923N/A --no-generator \
1923N/A --time \
1923N/A --stylesheet-path=$(CSS) \
1923N/A --link-stylesheet
1923N/A
1923N/ARST2LATEX = rst2latex.py
1923N/A
1923N/ARST2LATEX_FLAGS = --documentclass=ireport --documentoptions=12pt
1923N/A
1923N/Adraft := RST2LATEX_FLAGS = --documentclass=idraft --documentoptions=12pt
1923N/A
1923N/A.MAKE.STATE:
1923N/A
1923N/AM4_ARGS = -DCOMPLETE=1
1923N/A
1923N/AWEB_INCLUDES = macros.rsi web.css
1923N/A
1923N/Aoutput/%.rsi: output %.rst
1923N/A gm4 $(M4_ARGS) $< > $@
1923N/A
1923N/A
1923N/ATXT_FRAGMENTS = \
1923N/A apt.txt \
1923N/A catalog.txt \
1923N/A deduction.txt \
1923N/A elf-jar-handling.txt \
1923N/A es-requirements.txt \
1923N/A file-metadata.txt \
1923N/A filter.txt \
1923N/A image.txt \
1923N/A multi-platform.txt \
1923N/A one-pager-main.txt \
1923N/A protocol-versioning.txt \
1923N/A publication.txt \
1923N/A razor.txt \
1923N/A rest.txt \
1923N/A rfes.txt \
1923N/A transaction-order.txt \
1923N/A usr-setuid-bins.txt \
1923N/A versions.txt \
1923N/A wos-conversion.txt \
1923N/A wos-filetype-stats.txt \
1923N/A xml.txt
1923N/A
1923N/ARST_FRAGMENTS = \
1923N/A actions.rst \
1923N/A depot.rst \
1923N/A guide-basic-ops.rst \
1923N/A guide-implementation-depot.rst \
1923N/A guide-metadata-conventions.rst \
1923N/A guide-naming-conventions.rst \
1923N/A guide-pkg-states.rst \
1923N/A guide-publication-protocol.rst \
1923N/A guide-repository-format.rst \
1923N/A guide-retrieval-protocol.rst \
1923N/A guide-txn-states.rst \
1923N/A
1923N/ARST_JOINS = \
1923N/A guide-main.rst
1923N/A
1923N/ACSS=pkg-guide-web.css
1923N/A
1923N/AHTML_DIR = html-out
1923N/AFILE_URL = file://$(PWD)/$(HTML_DIR)
1923N/A
1923N/AHTML_CSS = $(HTML_DIR)/$(CSS)
1923N/AHTML_FRAGMENTS = $(RST_FRAGMENTS:%.rst=$(HTML_DIR)/%.html)
1923N/AHTML_JOINS = $(RST_JOINS:%.rst=$(HTML_DIR)/%.html)
1923N/A
1923N/A.KEEP_STATE:
1923N/A
1923N/Apdf: guide-main.pdf
1923N/A
1923N/Adraft: pdf
1923N/A
1923N/Ahtml: $(HTML_DIR) .WAIT $(HTML_CSS) $(HTML_FRAGMENTS) $(HTML_JOINS)
1923N/A
1923N/A$(HTML_JOINS): $(HTML_FRAGMENTS)
1923N/A
1923N/Ahtml-out:
1923N/A -mkdir $@
1923N/A
1923N/A# If we are embedding stylesheets, then we may wish to have this rule also
1923N/A# depend on $(CSS).
1923N/A$(HTML_DIR)/%.html: %.rst macros.rst
1923N/A rst2html.py $(RST2HTML_FLAGS) $< > $@
1923N/A
1923N/A$(HTML_DIR)/$(CSS): $(CSS)
1923N/A cp $(CSS) $@
1923N/A
1923N/A%.pdf: %.rst macros.rst $(RSI_INCLUDES)
1923N/A $(RST2LATEX) $(RST2LATEX_FLAGS) $< > $(<:%.rst=%.tex)
1923N/A pdflatex $(<:%.rst=%.tex)
1923N/A pdflatex $(<:%.rst=%.tex)
1923N/A
1923N/Aclean:
1923N/A rm -f $(HTML_FRAGMENTS) $(RSI_INCLUDES)
1923N/A
1923N/Aclobber: clean