# $Id: Makefile,v 1.1.1.1 1999/04/22 08:42:44 t-ishii Exp $

include ../Makefile.global

all: index.php3

pref.php3:
	makepref $(DB) > $@

index.php3: index.php3.source
	$(SED)  -e 's/_SHOWDB_/$(SHOWDB)/' \
		-e 's/_DEBUG_/$(DEBUG)/' \
		-e 's/_DEFAULTDB_/$(DB)/g' \
		-e 's/_PORT_/$(PORT)/g' \
		-e 's/_AUTH_CHECKED_/$(AUTH_CHECKED)/g' \
		-e 's/_DBHOST_/$(DBHOST)/g' index.php3.source > index.php3

install: pref.php3 index.php3 select.php3
	$(INSTALL) -m 444 pref.php3 index.php3 select.php3 help.html \
	$(WEBDEST)

clean:
	$(RM) index.php3 *~
