##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################

# Format the documentation for the Zope Packaging Tools.

# This should point to the Zope3/utilities/rst2html, but just about
# implementation will do.
RST2HTML=../../../Zope3/utilities/rst2html

LOCAL_HTML=\
	collections.html \
	index.html \
	intro.html \
	metadata.html \
	quickstart.html \
	resources.html \
	TODO.html \
	zpkg.html


local:  $(LOCAL_HTML)
all:	local apiref


.PHONY: apiref

.SUFFIXES: .txt .html
.txt.html:
	$(RST2HTML) --stylesheet rest.css $<

$(LOCAL_HTML): links.rst

# Need to add dependency information for this; this really depends on
# all the modules in zpkgtools, so is tedious to spell out.
apiref:
	./mkapiref.sh

apicheck:
	cd .. && epydoc -n 'Zope Packaging Tools' \
	    --docformat restructuredtext --check zpkgtools

clean:
	rm -f *.html
