# $Id$ 

All: onedoc 

LOCDIR	  = src/Infrastructure/FieldBundle/doc

DVIFILES  = FieldBundle_refdoc.dvi FieldBundle_crefdoc.dvi
PDFFILES  = FieldBundle_refdoc.pdf FieldBundle_crefdoc.pdf
HTMLFILES = FieldBundle_refdoc FieldBundle_crefdoc

#
# Tex Files to make
#
TEXFILES_TO_MAKE  = $(addsuffix _ccapi.tex, $(basename $(notdir $(wildcard ../src/*.C))))
TEXFILES_TO_MAKE += $(addsuffix _chapi.tex, $(basename $(notdir $(wildcard ../include/*.h))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../src/*.F))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../src/*.F90))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../src/*.f))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../src/*.f90))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../src/*.cppF90))))

TEXFILES_TO_MAKE += $(addsuffix _ccapi.tex, $(basename $(notdir $(wildcard ../examples/*.C))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../examples/*.F))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../examples/*.F90))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../examples/*.f))))
TEXFILES_TO_MAKE += $(addsuffix _fapi.tex, $(basename $(notdir $(wildcard ../examples/*.f90))))

#
# Files that a doc depends on.  Do not list the the ctex file!
# The ctex file is listed in the rule found in the build/common file.
# These lists almost certainly will not be an exhaustive list of
# all of the dependent files, but even a partial listing will be helpful.
#
REFDOC_DEP_FILES = $(TEXFILES_TO_MAKE) FieldBundle_desc.tex FieldBundle_usage.tex FieldBundle_rest.tex FieldBundle_implnotes.tex

include $(ESMF_DIR)/makefile

DIRS	  = 
CLEANDIRS   = FieldBundle_refdoc FieldBundle_crefdoc $(HTMLFILES)
CLEANFILES  = $(TEXFILES_TO_MAKE) $(CLEAN_TEXFILES) FieldBundle_refdoc.tex FieldBundle_crefdoc.tex $(PDFFILES)
CLOBBERDIRS =


