# Makefile for gtool4/htm
# by TOYODA Eizi, 2000-03-20

.SUFFIXES: .htm .3f .1

HTMS=netcdf.htm gtcont.htm gt3conv.htm rawread.htm

all: htms

htms: $(HTMS)

STRDIR=..\src\string
NCDIR=..\src\netcdf
TOOLDIR=..\tools
DATADIR=..\src\data
GRAPHDIR=..\src\graph

dc_string.htm: $(STRDIR)\$*.3f dc_chars.htm
	htroff -man -a -u $(STRDIR)\$*.3f

dc_chars.htm: $(STRDIR)\$*.3f iso_varying_string.htm
	htroff -man -a -u $(STRDIR)\$*.3f

iso_varying_string.htm: $(STRDIR)\$*.3f
	htroff -man -a -u $(STRDIR)\$*.3f

netcdf_v3.htm: $(NCDIR)\$*.3f
	htroff -man -a -u $(NCDIR)\$*.3f

netcdf_error.htm: $(NCDIR)\$*.3f netcdf_v3.htm dc_string.htm
	htroff -man -a -u $(NCDIR)\$*.3f

netcdf_file.htm: $(NCDIR)\$*.3f netcdf_error.htm
	htroff -man -a -u $(NCDIR)\$*.3f

netcdf_dimension.htm: $(NCDIR)\$*.3f netcdf_file.htm
	htroff -man -a -u $(NCDIR)\$*.3f

netcdf_variable.htm: $(NCDIR)\$*.3f netcdf_dimension.htm
	htroff -man -a -u $(NCDIR)\$*.3f

netcdf_slice.htm: $(NCDIR)\$*.3f netcdf_variable.htm
	htroff -man -a -u $(NCDIR)\$*.3f

netcdf_attribute.htm: $(NCDIR)\$*.3f netcdf_variable.htm
	htroff -man -a -u $(NCDIR)\$*.3f

netcdf.htm: $(NCDIR)\$*.3f netcdf_attribute.htm netcdf_slice.htm
	htroff -man -a -u $(NCDIR)\$*.3f

gtool.htm: $(GRAPHDIR)\$*.3f gtool_data.htm gtool_frame.htm
	htroff -man -a -u $(GRAPHDIR)\$*.3f

gtool_frame.htm: $(GRAPHDIR)\$*.3f gtool_figure.htm
	htroff -man -a -u $(GRAPHDIR)\$*.3f

gtool_figure.htm: $(GRAPHDIR)\$*.3f gtool_contours.htm
	htroff -man -a -u $(GRAPHDIR)\$*.3f

gtool_contours.htm: $(GRAPHDIR)\$*.3f gtool_axis.htm
	htroff -man -a -u $(GRAPHDIR)\$*.3f

gtool_axis.htm: $(GRAPHDIR)\$*.3f gtool_device.htm
	htroff -man -a -u $(GRAPHDIR)\$*.3f

gtool_device.htm: $(GRAPHDIR)\$*.3f gtool_data.htm
	htroff -man -a -u $(GRAPHDIR)\$*.3f

gtool_error.htm: $(DATADIR)\$*.3f
	htroff -man -a -u $(DATADIR)\$*.3f

gtool_file.htm: $(DATADIR)\$*.3f gtool_error.htm
	htroff -man -a -u $(DATADIR)\$*.3f

gtool_variable.htm: $(DATADIR)\$*.3f gtool_file.htm
	htroff -man -a -u $(DATADIR)\$*.3f

gtool_partial.htm: $(DATADIR)\$*.3f gtool_variable.htm
	htroff -man -a -u $(DATADIR)\$*.3f

gtool_io.htm: $(DATADIR)\$*.3f gtool_partial.htm
	htroff -man -a -u $(DATADIR)\$*.3f

gtool_attribute.htm: $(DATADIR)\$*.3f gtool_file.htm
	htroff -man -a -u $(DATADIR)\$*.3f

gtool_data.htm: $(DATADIR)\$*.3f gtool_io.htm gtool_attribute.htm
	htroff -man -a -u $(DATADIR)\$*.3f

gtcont.htm: $(TOOLDIR)\$*.1 gtool.htm
	htroff -man -a -u $(TOOLDIR)\$*.1

gt3conv.htm: $(TOOLDIR)\$*.1 gtool.htm
	htroff -man -a -u $(TOOLDIR)\$*.1

rawread.htm: $(TOOLDIR)\$*.1 gtool.htm
	htroff -man -a -u $(TOOLDIR)\$*.1

clean:
	-rm -f *.htm *.bak
