# Makefile for voyager
#
# generates static HTML versions from MetaHTML sources for xhtml-basic
#
# $Id: xhtmlbasicmakefile,v 1.1 2004/02/04 10:35:03 mimasa Exp $
#
# $Log: xhtmlbasicmakefile,v $
# Revision 1.1 2004/02/04 10:35:03 mimasa
# Added files for production.
#
# Revision 1.1 2004/02/04 10:35:03 mimasa
# Added files for production.
#
# Revision 1.3 2003/07/17 00:50:23 ahby
# Updated the Makefile.
#
# Revision 1.2 2003/07/17 00:46:15 ahby
# Updated the dev target and the previous version pointer.
#
# Revision 1.1 2003/07/16 18:57:05 ahby
# Initial versions under source control.
#
# Revision 1.11 2003/05/01 22:10:03 ahby
# Changed default document type to PR.
#
# Revision 1.10 2003/02/06 16:22:05 ahby
# Fixed the document type references and style sheet references to be
# dynamic again.
#
# Revision 1.9 2002/06/14 16:05:03 spemberton
# Editorial cleanup
#
# Revision 1.8 2001/07/25 20:17:31 ahby
# Removed references to xhtml-events in preparation for changing module name to
# xhtml-print.
#
# Revision 1.7 2001/06/07 15:27:39 ahby
# Fixed a broken link
#
# Revision 1.6 2001/06/05 15:39:23 ahby
# Fixed the makefile - reference to html2ps was wrong.
#
# Revision 1.5 2001/06/05 15:34:49 ahby
# Added the dev target for makes
#
# Revision 1.4 2001/06/05 15:30:36 ahby
# added a mode to create a diff file and postscript/pdf
#
# Revision 1.3 2001/05/31 20:47:18 ahby
# Fixed the makefile harder.
#
# Revision 1.2 2001/05/31 20:45:36 ahby
# Updated makefile so that it could find the metahtml processor.
#
# Revision 1.1 2001/05/31 20:35:46 ahby
# Converted over to using metahtml and macros.
# Cleaned up headers/titles.
# Started conversion to abstract module/DTD/Schema style.
#
#
#
.SUFFIXES: .mhtml .html
.mhtml.html:
-cat xmacros.mhtml $< | /usr/local/metahtml/bin/mhc --set smacs::type "$(TYPE)" | $(TIDY) > $@
TYPE = WD
TIDY = /usr/local/bin/tidy -n -wrap 200
SOURCE =
OUTPUT =
PREVIOUS = /home/ahby/xhtml-basic-20001219.html
all: $(OUTPUT) Overview.html
dev: all
/usr/local/bin/htmldiff -o $(PREVIOUS) Overview.html xhtml-print-diff.html
/usr/local/bin/html2ps -f html2ps.conf -o xhtml-basic.ps Overview.html
ps2pdf xhtml-basic.ps xhtml-basic.pdf
release: $(OUTPUT)
-/usr/local/metahtml/bin/mhc --set smacs::hide-sections no --set smacs::type "$(TYPE)" --set date "$(DATE)" --set release "$(RELEASE)" Overview.mhtml | $(TIDY) > Overview.html
rm -f fixrefs.sed
validate: $(OUTPUT) Overview.html
for file in $(OUTPUT) Overview.html; \
do \
/usr/local/bin/nsgmls -s -wxml $$file ; \
done
clobber:
-rm -rf $(OUTPUT) Overview.html xhtml-basic xhtml-basic-*.html *.pdf *.ps *.zip *.tgz
$(OUTPUT): xmacros.mhtml
Overview.html: Overview.mhtml xmacros.mhtml $(SOURCE)
-/usr/local/metahtml/bin/mhc --set smacs::hide-sections no --set smacs::type "$(TYPE)" Overview.mhtml | $(TIDY) > Overview.html
rm -f fixrefs.sed