# Makefile for doc/HtmlHlp
# $Id: Makefile,v 1.3 2001/03/14 02:52:18 vadz Exp $

include ../../makeopts

htmlhlp: .src/Manual.hhc

.src/Manual.tex: .src/../Manual.htex
	../../.src/extra/scripts/striphelpids $< > $@

# latex2html options are needed to produce a single HTML file without
# any navigation buttons which we don't need in CHM files anyhow
.src/Manual.html: .src/Manual.tex
	$(LATEX2HTML) -local_icons -split 0 -info 0 -verbosity 0 -no_navigation -dir Manual $<
	mv Manual/Manual.html .src

.src/Manual.hhc: .src/Manual.html
	cd .src && $(PERL) -w makehhc.pl

clean:
	rm -rf Manual .src/Manual.tex .src/Manual.html

.PHONY: htmlhlp clean
