##
## %Z% /u/des/public_html/talk/%M% %I% %E% %U%
## Makefile for web pages for Sys. Admin. presentation
## D.Singer, 8/98
##
## names of what will become the .html pages
#
NAMES = index \
test-page \
another-page \
last-page
## makes name.html list
#
HTMLS = $(NAMES:=.html)
## makes name.hsrc list
#
HSRCS = $(NAMES:=.hsrc)
## auxiliary files used to generate the .html files from the .hsrc files
#
#AUX_FILES = Makefile gen_html.sh
## database files
#
#DB_FILES = email-addrs.db web-addrs.db
##-------------------------------------------------------------------
## default:
## make all .html pages;
#
docs: ${HTMLS}
## this lets you use the name of a page with no suffix as a target
#
${NAMES}: $$@.html
## all of the docs should rebuild if the generator changes
#
${HTMLS}: gen_html.sh
## add a default rule for generating the html pages;
## there are a few special dependencies, see below;
## syntax below might be somewhat Solaris specific;
#
.SUFFIXES:
.SUFFIXES: .html .hsrc ${SUFFIXES}
.hsrc.html:
./gen_html.sh -q $*
## force a make of all pages;
## this one will NOT alter the update times
#
force: clean docs
## remove all html files
#
clean:
rm -f ${HTMLS}
## force a make of all pages;
## this one WILL alter the update times, ouch!
#
tforce: touch docs
## set the mod times on all hsrc files to now
touch:
touch ${HSRCS}
## end of makefile