.SUFFIXES: .tex .html
SRCS= 2bsd 386bsd 4bsd freebsd netbsd openbsd research usdl sysV bsdi \
	linux minix consensys tandem unixware sunos aos
SRCS= research 2bsd 386bsd 4bsd freebsd netbsd openbsd usdl sysV \
	linux minix 
L2H= latex2html
L2HOPTS=  -long_titles 6 -no_subdir -split 0 -link 0 -toc_depth 0
L2HOPTS2= -html_version 3.2,math -info 0 -no_auto_link

.tex.html:
	$(L2H) $(L2HOPTS) $(L2HOPTS2) $<
	sed 's/<A NAME="tex2html[0-9]*"/<A /' $@ > .zzz && mv .zzz $@

all: index.html references.html

unix_history.ps: unix_history Makefile
	dot -Tps unix_history > unix_history.ps

unix_history: $(SRCS) Makefile
	perl5 -w todot $(SRCS) > unix_history

index.html: index.tex

clean:
	rm -f *.html *.css unix_history *.aux *.log unix_history.ps

push: index.html references.html unix_history.ps
	chmod go+r *
	rsync -av --exclude-from exclfile . wkt@minnie:/usr/www/Unix_History
