# This makefile depends on the sgmltools-lite program.
#
# To use this file copy it into the directory where the sgml file lives, rename
# it to "makefile", and edit the source and path_to_stylesheets variables for
# your system.  Then simply type make.  If you're just starting the doc you can
# use the edit target to generate a quick single page html for proofreading.
# This works great from inside vim.
#
# $Log: sample_makefile,v $
# Revision 1.1  2002/01/13 02:42:51  jwgoerz
# sample makefile for generating docs
#
#

path_to_stylesheets = /home/jesse/newbiedoc/newbiedoc/metatools/
source = vim.sgml
tar_source = `echo ${source} | cut -d . -f1`

all: onehtml html tarball

onehtml:
	sgmltools -b onehtml -s ${path_to_stylesheets}newbiedoc-onehtml.dsl ${source}

html:
	sgmltools -b html -s ${path_to_stylesheets}newbiedoc-html.dsl ${source}

# This one doesn't take care of images yet.  Haven't figured out a sane way to
# do that yet.  This also depends on the fact that sgmltools-lite generates
# multi-page files in a subdirectory named after the source file without the
# sgml extension.
tarball:
	tar czf ${tar_source}.tgz ${tar_source}
	-rm -rf ${tar_source}

# I use edit so I can occasionally call make edit and proofread the doc.  It's
# easier to proofread the html rather than the sgml source.  This target does
# the same thing as onehtml but is shorter to type :)
edit:
	sgmltools -b onehtml -s ${path_to_stylesheets}newbiedoc-onehtml.dsl ${source}
