

# 	Makefile for Doug's home page

INCLUDE=$(TOPOROOT)/dkl/include
MAKEFILE=$(TOPOROOT)/dkl/makefile

default:
	rm -f index.html ; make -f $(MAKEFILE) index.html

all:	clean index.html subdirs

subdirs:	
	dirs=`ls | grep -v '^[a-z]'`;				\
	for i in $$dirs;					\
	do 							\
            if [ $$i != "CVS" ]; then            		\
		if [ -d $$i ]; then 				\
			cd $$i; 				\
			make -k -f $(TOPOROOT)/dkl/makefile all ;	\
			cd ..; 						\
		fi; 							\
	    fi; 							\
	done;								\
	echo done;	

%.html:	%.html.in
	makedoug

%.html.in:	
	echo "#include <$*.html.tmpl>" | cpp -P -I. -I$(INCLUDE) > $*.html.in

clean:	
	rm -f *.html *.html.in > /dev/null

squeaky:	
	rm -f *.html *.html.in images/* > /dev/null

