# Makefile for installing DISWWW-related files
# $Id:$

SHELL = /bin/sh
RM = rm -f
INSTALL = ginstall
FILEINSTALL = -m 644

# where the stuff is getting installed (gets passed as arg from parent make)
FILESDIR = /var/local/diswww/files

# You probably want to customize your documents and change DOCS appropriately.
# (For comparison, "mit-index.html" is the root file on WWW.MIT.EDU:8008.)
#DOCS = index.html mit-index.html help.html info.html faq.html
DOCS = index.html help.html info.html faq.html

# the DISWWW logo.
LOGO = diswww.gif

# the icons for to click on.  if you design a better set, let me know.  =)
ICONS = i-d.gif i-help.gif i-back.gif i-prev.gif n-prev.gif i-next.gif\
  n-next.gif i-first.gif n-first.gif i-last.gif n-last.gif i-pref.gif\
  n-pref.gif i-nref.gif n-nref.gif i-fref.gif n-fref.gif i-lref.gif\
  n-lref.gif i-up.gif n-up.gif i-down.gif n-down.gif

access: Makefile
	$(RM) $@
	touch $@
	for i in $(DOCS); do echo "$$i	text/html" >> $@; done
	for i in $(LOGO) $(ICONS); do echo "$$i	image/gif" >> $@; done

all:: access

clean::
	$(RM) access core *~

$(FILESDIR)::
	-mkdir $(FILESDIR)

install:: $(FILESDIR) access
	$(INSTALL) $(FILEINSTALL) access $(FILESDIR)/.access
	$(INSTALL) $(FILEINSTALL) $(DOCS) $(LOGO) $(ICONS) $(FILESDIR)
