#
# Makefile to make html pages. (dynamic version, 4/19/98 --Patrick)
# Assumes file is named blah.raw in order to make blah.html
# Assumes file is named blah.sraw in order to make blah.shtml
#
CPP=cpp
TOPDIR=/home/webman/server/htdocs
INCDIR=${TOPDIR}/include
INCFILES=${INCDIR}/macros ${INCDIR}/macro_buttons.html\
${INCDIR}/macro_footer.html ${INCDIR}/macro_header.html\
${INCDIR}/index_buttons.html
# removed the normal 'all' target. Now it calls the 'amake' script
# instead.
all:
@echo 'Running amake'
@echo '============='
@echo
@/home/webman/bin/amake
#
# These rules say "XXX.html depends on XXX.raw and all the include files"
# and "XXX.shtml depends on XXX.sraw and all the include files"
#
# added 'tr' segment to make the output source a little more readable
# in "view source" window
%.html: %.raw ${INCFILES}
@rm -f $@
${CPP} -I${INCDIR} -P $< | /usr/bin/tr -s '[\n]' > $@
%.shtml: %.sraw ${INCFILES}
@rm -f $@
${CPP} -I${INCDIR} -P $< | /usr/bin/tr -s '[\n]' > $@