
prefix=/usr/share
HTML_PREFIX = $(prefix)/doc/ClanLib-docs-0.6.3/Documentation

all:	html

html:
	@echo 'Type "make html_install" to install the html reference pages.'
	if [ ! -d html ]; then mkdir html; fi
	chmod +x ./pce2
	find ../../Sources/API -name '*.h' | xargs ./pce2

html_install:
	@install -d $(HTML_PREFIX)
	@install -d $(HTML_PREFIX)/Reference
	@install -d $(HTML_PREFIX)/Reference/images
	@install -d $(HTML_PREFIX)/Reference/html
	@install -m 0644 images/*.gif $(HTML_PREFIX)/Reference/images
	@install -m 0644 html/*.html $(HTML_PREFIX)/Reference/html

distclean: clean
	rm -f Makefile
	
clean:
	rm -rf html

