#

PS = \
	cppguide.ps 

include ../Makefile.texrules

all: $(PS) html
	# Copy output to VIPSHOME/doc
	cp $(PS) ../../ps

cppguide.dvi: verror.tex fileformat.tex intro.tex mydefs.tex \
	vdisplay.tex vimage.tex vimagemember.tex vmask.tex

.PHONEY: html 
html: cppguide.dvi
	$(L2H) cppguide
	# replace l2h hard link with soft link
	(cd cppguide; rm index.html; ln -s cppguide.html index.html)
	-rm -rf ../../html/cppguide 
	cp -r cppguide ../../html

.PHONEY: clean 
clean:
	-rm -f $(PS) $(DVI) $(AUX) $(LOG) $(LOF) $(LOT) $(TOC)
	-rm -rf cppguide
