################################################################
# Makefile for making distributions of the Graphics library
#
# Targets:
#   html    The Graphics library web pages
#   clean
#
# Distributions are built by running
#
#    mkdir <target>
#    ./mkdistrib `pwd`/.. <target>
#
# where <target> is something like:
# 
#   /home/haskell/graphics   # to update the master page on haskell.org
#   /tmp/graphics            # to build test distribution
#
################################################################

# comes first for usual reasons
default		:: nodefault

################################################################
# Configuration
################################################################

# This should point at a copy of Andy Gill's HTML combinators
HTML_LIB = $(HOME)/local/htmllib

################################################################
# Target files
################################################################

# These files are generated by running Webpage.hs
HTML_FILES =               \
	index.html         \
	downloading.html   \
	faq.html	   \
	bugs.html	   \
	bug-reports.html   \
	documentation.html

html::	$(HTML_FILES)

################################################################
# Rules
################################################################

$(HTML_FILES): Webpage.hs
	runhugs -P$(HTML_LIB): Webpage.hs

clean	::
	$(RM) $(HTML_FILES)
veryclean:: clean
	$(RM) *~

nodefault:
	@ echo "There is no default target in this directory"
	@ false

################################################################
# End of Makefile
################################################################
