PKG=GeoIP
WEB_DIR=www.omegahat.org:/home3/WebSites/Omega/$(PKG)


shipIndex: index.html extra
#	$(MAKE) -C ../inst/doc ship
	scp index.html $(WEB_DIR)/index.html

extra:
	-scp ../Changes.html ../FAQ.html $(WEB_DIR)

indexInstall indexOnly: index.html
	scp index.html $(WEB_DIR)/


html:
	if ! test -d Temp ; then mkdir Temp ; fi
	R CMD INSTALL -l Temp ..
	cp -r Temp/$(PKG)/html .
	rm -fr Temp

index.html: index.html.in configure ../DESCRIPTION
	@echo "Running configure to create index.html"
	./configure

configure: configure.in
	autoconf


%.html: %.xml
	$(MAKE) -C $(@D) $(@F)

