# File: html/Makefile
# Purpose: Makefile for on-line documentation
# Author: Phil Bunce (pjb@carmel.com)
# Revision History:
#	980412	Start of revision history
#	980412	Fixed to update version for any changed files

OTHERS = Makefile 

TL = $(LSIPKG)/tape.lst
tape : mkfilelist version index.htm
	@mklst html $(OTHERS) version >> $(TL)
	@\mksnt\sed -e 's/^\./html\//g' filelist >> $(TL)

mkfilelist :
	@rm -f docindex.htm doctoc.htm
	@touch docindex.htm doctoc.htm
	perl mk-href-list.pl index.htm filelist
	perl mk-newer.pl newest filelist $(OTHERS) index.src

newrev :
	@newversion $(NVSW)
sum:
	@sum $(OTHERS) version > sum.out

patch: revhistory
	@mkpatch html sum.out $(OTHERS) version >> $(TL)

version : newest
	@newversion $(NVSW)
	perl mktoc.pl > doctoc.htm
	perl mkindex.pl > docindex.htm
	@touch newest version

index.htm : index.src version
	@mkreadme index.src version > index.htm

