# Makefile.in generated by automake 1.10 from Makefile.am.
# man/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.



# Copyright 2005-2006, see the COPYRIGHT file for more information.
# This file builds the netcdf documentation.

# The "all" target does nothing in this directory. The "dist" target
# *does* build the documentation, because the distribution contains
# all of the built documentation.

# $Id: Makefile.am,v 1.41 2008/02/13 19:57:16 dmh Exp $


pkgdatadir = $(datadir)/netcdf
pkglibdir = $(libdir)/netcdf
pkgincludedir = $(includedir)/netcdf
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = x86_64-unknown-linux-gnu
host_triplet = x86_64-unknown-linux-gnu

# If utilities are being built, add their man pages.
am__append_1 = ncdump-man-1.html ncgen-man-1.html 

# Add F77 manual if user is building f77 API.
am__append_2 = netcdf-f77.texi 
am__append_3 = netcdf_f77-man.html

# Add F90 manual if user is building f90 API.
am__append_4 = netcdf-f90.texi 
am__append_5 = netcdf_f90-man.html

# Add C++ manual if user is building C++ API.
am__append_6 = netcdf-cxx.texi
subdir = man
DIST_COMMON = $(netcdf_TEXINFOS) $(netcdf_c_TEXINFOS) \
	$(netcdf_cxx_TEXINFOS) $(netcdf_f77_TEXINFOS) \
	$(netcdf_f90_TEXINFOS) $(netcdf_install_TEXINFOS) \
	$(netcdf_tutorial_TEXINFOS) $(srcdir)/Makefile.am \
	$(srcdir)/Makefile.in $(srcdir)/stamp-1 $(srcdir)/stamp-2 \
	$(srcdir)/stamp-3 $(srcdir)/stamp-4 $(srcdir)/stamp-5 \
	$(srcdir)/stamp-6 $(srcdir)/stamp-vti $(srcdir)/version-c.texi \
	$(srcdir)/version-cxx.texi $(srcdir)/version-f77.texi \
	$(srcdir)/version-f90.texi $(srcdir)/version-install.texi \
	$(srcdir)/version-tutorial.texi $(srcdir)/version.texi \
	mdate-sh texinfo.tex
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 $(top_srcdir)/dods.m4 \
	$(top_srcdir)/ncdap.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h \
	$(top_builddir)/fortran/nfconfig1.inc
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
INFO_DEPS = $(srcdir)/netcdf.info $(srcdir)/netcdf-install.info \
	$(srcdir)/netcdf-c.info $(srcdir)/netcdf-tutorial.info \
	$(srcdir)/netcdf-f77.info $(srcdir)/netcdf-f90.info \
	$(srcdir)/netcdf-cxx.info
am__TEXINFO_TEX_DIR = $(srcdir)
DVIS = netcdf.dvi netcdf-install.dvi netcdf-c.dvi netcdf-tutorial.dvi \
	netcdf-f77.dvi netcdf-f90.dvi netcdf-cxx.dvi
PDFS = netcdf.pdf netcdf-install.pdf netcdf-c.pdf netcdf-tutorial.pdf \
	netcdf-f77.pdf netcdf-f90.pdf netcdf-cxx.pdf
PSS = netcdf.ps netcdf-install.ps netcdf-c.ps netcdf-tutorial.ps \
	netcdf-f77.ps netcdf-f90.ps netcdf-cxx.ps
HTMLS = netcdf.html netcdf-install.html netcdf-c.html \
	netcdf-tutorial.html netcdf-f77.html netcdf-f90.html \
	netcdf-cxx.html
TEXINFOS = $(build_texi_files)
TEXI2PDF = $(TEXI2DVI) --pdf --batch
MAKEINFOHTML = $(MAKEINFO) --html
AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
DVIPS = dvips
am__installdirs = "$(DESTDIR)$(infodir)" "$(DESTDIR)$(docdir)"
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
docDATA_INSTALL = $(INSTALL_DATA)
DATA = $(doc_DATA)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /usr/local/netcdf/missing --run aclocal-1.10
ALLOCA = 
AMTAR = ${SHELL} /usr/local/netcdf/missing --run tar
AR = ar
AS = as
AUTOCONF = ${SHELL} /usr/local/netcdf/missing --run autoconf
AUTOHEADER = ${SHELL} /usr/local/netcdf/missing --run autoheader
AUTOMAKE = ${SHELL} /usr/local/netcdf/missing --run automake-1.10
AWK = gawk
BINFILE_NAME = binary-netcdf-4.0_nc3_ifort_ifort_icc.tar
CC = icc
CCDEPMODE = depmode=gcc3
CFLAGS = -I/usr/local/include -fPIC
CPP = cpp
CPPFLAGS = -Df2cFortran
CXX = icc
CXXCPP = cpp
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = dlltool
DSYMUTIL = 
DUMPBIN = 
ECHO_C = 
ECHO_N = -n
ECHO_T = 
EGREP = /bin/grep -E
EXEEXT = 
F77 = ifort
FC = ifort
FCFLAGS = -g
FCFLAGS_f90 = 
FFLAGS = -fPIC
FGREP = /bin/grep -F
FTPBINDIR = /home/ftp/pub/binary/dummy_system
GREP = /bin/grep
HDF5DIR = .
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LD = /usr/bin/ld -m elf_x86_64
LDFLAGS = -L/usr/local/lib -L/usr/lib
LEX = flex
LEXLIB = -lfl
LEX_OUTPUT_ROOT = lex.yy
LIBOBJS = 
LIBS = -L/usr/lib -L/usr/local/lib
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
LTLIBOBJS = 
MAKEINFO = ${SHELL} /usr/local/netcdf/missing --run makeinfo
MAKEWHATIS_CMD = 
MKDIR_P = /bin/mkdir -p
MOD_FLAG = -I
NETCDF_C_LIB = 
NM = /usr/bin/nm -B
NMEDIT = 
NMFLAGS = 
OBJDUMP = objdump
OBJEXT = o
PACKAGE = netcdf
PACKAGE_BUGREPORT = support@unidata.ucar.edu
PACKAGE_NAME = netCDF
PACKAGE_STRING = netCDF 4.0
PACKAGE_TARNAME = netcdf
PACKAGE_VERSION = 4.0
PATH_SEPARATOR = :
RANLIB = ranlib
SED = /bin/sed
SET_MAKE = 
SHAREEXT = so
SHELL = /bin/sh
STRIP = strip
SZLIBDIR = 
VERSION = 4.0
WHATIS = whatis
ZLIBDIR = 
abs_builddir = /usr/local/netcdf/man
abs_srcdir = /usr/local/netcdf/man
abs_top_builddir = /usr/local/netcdf
abs_top_srcdir = /usr/local/netcdf
ac_ct_CC = 
ac_ct_CXX = 
ac_ct_DUMPBIN = 
ac_ct_F77 = 
ac_ct_FC = 
am__include = include
am__leading_dot = .
am__quote = 
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = x86_64-unknown-linux-gnu
build_alias = 
build_cpu = x86_64
build_os = linux-gnu
build_vendor = unknown
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share

# These will be installed on the user machine. We'll only install one
# version of the html docs, the ones with one page per manual. The
# version with one page per node is just for the netCDF website, so we
# don't ship it or install it.
#docdir = $(prefix)/doc/$(PACKAGE)-$(VERSION)
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = x86_64-unknown-linux-gnu
host_alias = 
host_cpu = x86_64
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /usr/local/netcdf/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
lt_ECHO = echo
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /usr/local
prog = 
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias = 
top_build_prefix = ../
top_builddir = ..
top_srcdir = ..

# DMH (02/13/2008) man4/Makefile.am constructs everything
# unconditionally; so I assume we should too.
# (Also should fix bug in 'make dist')
# Unconditionally overwrite what we did above (the old way)
texi_files = netcdf.texi netcdf-install.texi netcdf-c.texi \
             netcdf-tutorial.texi \
             netcdf-f77.texi netcdf-f90.texi netcdf-cxx.texi


# These are html versions of the man pages.
html_mans = netcdf-man-3.html ncdump-man-1.html ncgen-man-1.html \
            netcdf_f77-man.html netcdf_f90-man.html


# Get lists of the coresponding ps, info, and pdf files.
html_docs = ${texi_files:.texi=.html} 
html_dirs = ${texi_files:.texi=} 
ps_docs = ${texi_files:.texi=.ps} 
dvi_docs = ${texi_files:.texi=.dvi} 
pdf_docs = ${texi_files:.texi=.pdf}
info_docs = ${texi_files:.texi=.info}
txt_docs = ${texi_files:.texi=.txt}

# These files will be included with the dist.
EXTRA_DIST = netcdf.m4 $(pdf_docs) $(html_mans) $(txt_docs) $(dvi_docs)	\
$(ps_docs) $(info_docs) $(html_docs)


# If we have not used --enable-build-docs then none of the following
# will get into the make file. This should not be necessary, but is
# because of broken implementations of make on AIX and perhaps other
# platforms.

# Get texi2dvi to shut the hell up!
TEXI2DVI = texi2dvi -s
build_texi_files = $(texi_files)

# These are the texi sources for the manuals.
info_TEXINFOS = $(build_texi_files)
#doc_DATA = $(pdf_docs) $(html_mans) $(txt_docs) $(ps_docs)	\
#$(html_docs) $(info_docs)


# These are lists of the source code which will be inserted into the
# netCDF Tutorial. Note that the tutorial always contains info about
# all 4 APIs, not just the ones that are installed.
c_examples = simple_xy_wr.c simple_xy_rd.c sfc_pres_temp_wr.c	\
sfc_pres_temp_rd.c pres_temp_4D_wr.c pres_temp_4D_rd.c

f77_examples = ${c_examples:.c=.f} 
f90_examples = ${c_examples:.c=.f90} 
cxx_examples = ${c_examples:.c=.cpp} 
cdl_examples = simple_xy.cdl sfc_pres_temp.cdl pres_temp_4D.cdl

# All the documents depend on defines.texi for some common
# definitions.
netcdf_TEXINFOS = defines.texi
netcdf_install_TEXINFOS = defines.texi
netcdf_c_TEXINFOS = defines.texi
netcdf_f77_TEXINFOS = defines.texi
netcdf_f90_TEXINFOS = defines.texi
netcdf_cxx_TEXINFOS = defines.texi
netcdf_tutorial_TEXINFOS = defines.texi ${c_examples} ${f77_examples}	\
${f90_examples} ${cxx_examples} ${cdl_examples}


# To build documentation you must have M4 in the path.
M4 = m4

# Clean up all the junk we created!
MAINTAINERCLEANFILES = $(ps_docs) $(pdf_docs) $(txt_docs) $(info_docs)	\
$(html_docs) $(man_MANS) ${c_examples} ${f77_examples} ${f90_examples}	\
${cxx_examples} ${cdl_examples} *.1 *.3 ncdump-man-1.html		\
ncgen-man-1.html netcdf_f77-man.html netcdf-man-3.html			\
netcdf_f90-man.html stamp-* version* 

all: all-am

.SUFFIXES:
.SUFFIXES: .dvi .html .info .pdf .ps .texi .txt
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
		&& exit 0; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  man/Makefile'; \
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --foreign  man/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure:  $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

.texi.info:
	restore=: && backupdir="$(am__leading_dot)am$$$$" && \
	am__cwd=`pwd` && cd $(srcdir) && \
	rm -rf $$backupdir && mkdir $$backupdir && \
	if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
	  for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
	    if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
	  done; \
	else :; fi && \
	cd "$$am__cwd"; \
	if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
	 -o $@ $<; \
	then \
	  rc=0; \
	  cd $(srcdir); \
	else \
	  rc=$$?; \
	  cd $(srcdir) && \
	  $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
	fi; \
	rm -rf $$backupdir; exit $$rc

.texi.dvi:
	TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
	MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
	$(TEXI2DVI) $<

.texi.pdf:
	TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
	MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
	$(TEXI2PDF) $<

.texi.html:
	rm -rf $(@:.html=.htp)
	if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
	 -o $(@:.html=.htp) $<; \
	then \
	  rm -rf $@; \
	  if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
	    mv $(@:.html=) $@; else mv $(@:.html=.htp) $@; fi; \
	else \
	  if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
	    rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \
	  exit 1; \
	fi
$(srcdir)/netcdf.info: netcdf.texi $(srcdir)/version.texi $(netcdf_TEXINFOS)
netcdf.dvi: netcdf.texi $(srcdir)/version.texi $(netcdf_TEXINFOS)
netcdf.pdf: netcdf.texi $(srcdir)/version.texi $(netcdf_TEXINFOS)
$(srcdir)/version.texi:  $(srcdir)/stamp-vti
$(srcdir)/stamp-vti: netcdf.texi $(top_srcdir)/configure
	@(dir=.; test -f ./netcdf.texi || dir=$(srcdir); \
	set `$(SHELL) $(srcdir)/mdate-sh $$dir/netcdf.texi`; \
	echo "@set UPDATED $$1 $$2 $$3"; \
	echo "@set UPDATED-MONTH $$2 $$3"; \
	echo "@set EDITION $(VERSION)"; \
	echo "@set VERSION $(VERSION)") > vti.tmp
	@cmp -s vti.tmp $(srcdir)/version.texi \
	  || (echo "Updating $(srcdir)/version.texi"; \
	      cp vti.tmp $(srcdir)/version.texi)
	-@rm -f vti.tmp
	@cp $(srcdir)/version.texi $@

mostlyclean-vti:
	-rm -f vti.tmp

maintainer-clean-vti:
	-rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
$(srcdir)/netcdf-install.info: netcdf-install.texi $(srcdir)/version-install.texi $(netcdf_install_TEXINFOS)
netcdf-install.dvi: netcdf-install.texi $(srcdir)/version-install.texi $(netcdf_install_TEXINFOS)
netcdf-install.pdf: netcdf-install.texi $(srcdir)/version-install.texi $(netcdf_install_TEXINFOS)
$(srcdir)/version-install.texi:  $(srcdir)/stamp-1
$(srcdir)/stamp-1: netcdf-install.texi $(top_srcdir)/configure
	@(dir=.; test -f ./netcdf-install.texi || dir=$(srcdir); \
	set `$(SHELL) $(srcdir)/mdate-sh $$dir/netcdf-install.texi`; \
	echo "@set UPDATED $$1 $$2 $$3"; \
	echo "@set UPDATED-MONTH $$2 $$3"; \
	echo "@set EDITION $(VERSION)"; \
	echo "@set VERSION $(VERSION)") > 1.tmp
	@cmp -s 1.tmp $(srcdir)/version-install.texi \
	  || (echo "Updating $(srcdir)/version-install.texi"; \
	      cp 1.tmp $(srcdir)/version-install.texi)
	-@rm -f 1.tmp
	@cp $(srcdir)/version-install.texi $@

mostlyclean-1:
	-rm -f 1.tmp

maintainer-clean-1:
	-rm -f $(srcdir)/stamp-1 $(srcdir)/version-install.texi
$(srcdir)/netcdf-c.info: netcdf-c.texi $(srcdir)/version-c.texi $(netcdf_c_TEXINFOS)
netcdf-c.dvi: netcdf-c.texi $(srcdir)/version-c.texi $(netcdf_c_TEXINFOS)
netcdf-c.pdf: netcdf-c.texi $(srcdir)/version-c.texi $(netcdf_c_TEXINFOS)
$(srcdir)/version-c.texi:  $(srcdir)/stamp-2
$(srcdir)/stamp-2: netcdf-c.texi $(top_srcdir)/configure
	@(dir=.; test -f ./netcdf-c.texi || dir=$(srcdir); \
	set `$(SHELL) $(srcdir)/mdate-sh $$dir/netcdf-c.texi`; \
	echo "@set UPDATED $$1 $$2 $$3"; \
	echo "@set UPDATED-MONTH $$2 $$3"; \
	echo "@set EDITION $(VERSION)"; \
	echo "@set VERSION $(VERSION)") > 2.tmp
	@cmp -s 2.tmp $(srcdir)/version-c.texi \
	  || (echo "Updating $(srcdir)/version-c.texi"; \
	      cp 2.tmp $(srcdir)/version-c.texi)
	-@rm -f 2.tmp
	@cp $(srcdir)/version-c.texi $@

mostlyclean-2:
	-rm -f 2.tmp

maintainer-clean-2:
	-rm -f $(srcdir)/stamp-2 $(srcdir)/version-c.texi
$(srcdir)/netcdf-tutorial.info: netcdf-tutorial.texi $(srcdir)/version-tutorial.texi $(netcdf_tutorial_TEXINFOS)
netcdf-tutorial.dvi: netcdf-tutorial.texi $(srcdir)/version-tutorial.texi $(netcdf_tutorial_TEXINFOS)
netcdf-tutorial.pdf: netcdf-tutorial.texi $(srcdir)/version-tutorial.texi $(netcdf_tutorial_TEXINFOS)
$(srcdir)/version-tutorial.texi:  $(srcdir)/stamp-3
$(srcdir)/stamp-3: netcdf-tutorial.texi $(top_srcdir)/configure
	@(dir=.; test -f ./netcdf-tutorial.texi || dir=$(srcdir); \
	set `$(SHELL) $(srcdir)/mdate-sh $$dir/netcdf-tutorial.texi`; \
	echo "@set UPDATED $$1 $$2 $$3"; \
	echo "@set UPDATED-MONTH $$2 $$3"; \
	echo "@set EDITION $(VERSION)"; \
	echo "@set VERSION $(VERSION)") > 3.tmp
	@cmp -s 3.tmp $(srcdir)/version-tutorial.texi \
	  || (echo "Updating $(srcdir)/version-tutorial.texi"; \
	      cp 3.tmp $(srcdir)/version-tutorial.texi)
	-@rm -f 3.tmp
	@cp $(srcdir)/version-tutorial.texi $@

mostlyclean-3:
	-rm -f 3.tmp

maintainer-clean-3:
	-rm -f $(srcdir)/stamp-3 $(srcdir)/version-tutorial.texi
$(srcdir)/netcdf-f77.info: netcdf-f77.texi $(srcdir)/version-f77.texi $(netcdf_f77_TEXINFOS)
netcdf-f77.dvi: netcdf-f77.texi $(srcdir)/version-f77.texi $(netcdf_f77_TEXINFOS)
netcdf-f77.pdf: netcdf-f77.texi $(srcdir)/version-f77.texi $(netcdf_f77_TEXINFOS)
$(srcdir)/version-f77.texi:  $(srcdir)/stamp-4
$(srcdir)/stamp-4: netcdf-f77.texi $(top_srcdir)/configure
	@(dir=.; test -f ./netcdf-f77.texi || dir=$(srcdir); \
	set `$(SHELL) $(srcdir)/mdate-sh $$dir/netcdf-f77.texi`; \
	echo "@set UPDATED $$1 $$2 $$3"; \
	echo "@set UPDATED-MONTH $$2 $$3"; \
	echo "@set EDITION $(VERSION)"; \
	echo "@set VERSION $(VERSION)") > 4.tmp
	@cmp -s 4.tmp $(srcdir)/version-f77.texi \
	  || (echo "Updating $(srcdir)/version-f77.texi"; \
	      cp 4.tmp $(srcdir)/version-f77.texi)
	-@rm -f 4.tmp
	@cp $(srcdir)/version-f77.texi $@

mostlyclean-4:
	-rm -f 4.tmp

maintainer-clean-4:
	-rm -f $(srcdir)/stamp-4 $(srcdir)/version-f77.texi
$(srcdir)/netcdf-f90.info: netcdf-f90.texi $(srcdir)/version-f90.texi $(netcdf_f90_TEXINFOS)
netcdf-f90.dvi: netcdf-f90.texi $(srcdir)/version-f90.texi $(netcdf_f90_TEXINFOS)
netcdf-f90.pdf: netcdf-f90.texi $(srcdir)/version-f90.texi $(netcdf_f90_TEXINFOS)
$(srcdir)/version-f90.texi:  $(srcdir)/stamp-5
$(srcdir)/stamp-5: netcdf-f90.texi $(top_srcdir)/configure
	@(dir=.; test -f ./netcdf-f90.texi || dir=$(srcdir); \
	set `$(SHELL) $(srcdir)/mdate-sh $$dir/netcdf-f90.texi`; \
	echo "@set UPDATED $$1 $$2 $$3"; \
	echo "@set UPDATED-MONTH $$2 $$3"; \
	echo "@set EDITION $(VERSION)"; \
	echo "@set VERSION $(VERSION)") > 5.tmp
	@cmp -s 5.tmp $(srcdir)/version-f90.texi \
	  || (echo "Updating $(srcdir)/version-f90.texi"; \
	      cp 5.tmp $(srcdir)/version-f90.texi)
	-@rm -f 5.tmp
	@cp $(srcdir)/version-f90.texi $@

mostlyclean-5:
	-rm -f 5.tmp

maintainer-clean-5:
	-rm -f $(srcdir)/stamp-5 $(srcdir)/version-f90.texi
$(srcdir)/netcdf-cxx.info: netcdf-cxx.texi $(srcdir)/version-cxx.texi $(netcdf_cxx_TEXINFOS)
netcdf-cxx.dvi: netcdf-cxx.texi $(srcdir)/version-cxx.texi $(netcdf_cxx_TEXINFOS)
netcdf-cxx.pdf: netcdf-cxx.texi $(srcdir)/version-cxx.texi $(netcdf_cxx_TEXINFOS)
$(srcdir)/version-cxx.texi:  $(srcdir)/stamp-6
$(srcdir)/stamp-6: netcdf-cxx.texi $(top_srcdir)/configure
	@(dir=.; test -f ./netcdf-cxx.texi || dir=$(srcdir); \
	set `$(SHELL) $(srcdir)/mdate-sh $$dir/netcdf-cxx.texi`; \
	echo "@set UPDATED $$1 $$2 $$3"; \
	echo "@set UPDATED-MONTH $$2 $$3"; \
	echo "@set EDITION $(VERSION)"; \
	echo "@set VERSION $(VERSION)") > 6.tmp
	@cmp -s 6.tmp $(srcdir)/version-cxx.texi \
	  || (echo "Updating $(srcdir)/version-cxx.texi"; \
	      cp 6.tmp $(srcdir)/version-cxx.texi)
	-@rm -f 6.tmp
	@cp $(srcdir)/version-cxx.texi $@

mostlyclean-6:
	-rm -f 6.tmp

maintainer-clean-6:
	-rm -f $(srcdir)/stamp-6 $(srcdir)/version-cxx.texi
.dvi.ps:
	TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
	$(DVIPS) -o $@ $<

uninstall-dvi-am:
	@$(NORMAL_UNINSTALL)
	@list='$(DVIS)'; for p in $$list; do \
	  f=$(am__strip_dir) \
	  echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \
	  rm -f "$(DESTDIR)$(dvidir)/$$f"; \
	done

uninstall-html-am:
	@$(NORMAL_UNINSTALL)
	@list='$(HTMLS)'; for p in $$list; do \
	  f=$(am__strip_dir) \
	  echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \
	  rm -rf "$(DESTDIR)$(htmldir)/$$f"; \
	done

uninstall-info-am:
	@$(PRE_UNINSTALL)
	@if test -d '$(DESTDIR)$(infodir)' && \
	    (install-info --version && \
	     install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
	  list='$(INFO_DEPS)'; \
	  for file in $$list; do \
	    relfile=`echo "$$file" | sed 's|^.*/||'`; \
	    echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
	    install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
	  done; \
	else :; fi
	@$(NORMAL_UNINSTALL)
	@list='$(INFO_DEPS)'; \
	for file in $$list; do \
	  relfile=`echo "$$file" | sed 's|^.*/||'`; \
	  relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
	  (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \
	     echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \
	     rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
	   else :; fi); \
	done

uninstall-pdf-am:
	@$(NORMAL_UNINSTALL)
	@list='$(PDFS)'; for p in $$list; do \
	  f=$(am__strip_dir) \
	  echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \
	  rm -f "$(DESTDIR)$(pdfdir)/$$f"; \
	done

uninstall-ps-am:
	@$(NORMAL_UNINSTALL)
	@list='$(PSS)'; for p in $$list; do \
	  f=$(am__strip_dir) \
	  echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \
	  rm -f "$(DESTDIR)$(psdir)/$$f"; \
	done

dist-info: $(INFO_DEPS)
	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
	list='$(INFO_DEPS)'; \
	for base in $$list; do \
	  case $$base in \
	    $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
	  esac; \
	  if test -f $$base; then d=.; else d=$(srcdir); fi; \
	  base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
	  for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
	    if test -f $$file; then \
	      relfile=`expr "$$file" : "$$d/\(.*\)"`; \
	      test -f $(distdir)/$$relfile || \
		cp -p $$file $(distdir)/$$relfile; \
	    else :; fi; \
	  done; \
	done

mostlyclean-aminfo:
	-rm -rf netcdf.aux netcdf.cp netcdf.cps netcdf.fn netcdf.ky netcdf.kys \
	  netcdf.log netcdf.pg netcdf.pgs netcdf.tmp netcdf.toc \
	  netcdf.tp netcdf.tps netcdf.vr netcdf.dvi netcdf.pdf \
	  netcdf.ps netcdf.html netcdf-install.aux netcdf-install.cp \
	  netcdf-install.cps netcdf-install.fn netcdf-install.ky \
	  netcdf-install.kys netcdf-install.log netcdf-install.pg \
	  netcdf-install.pgs netcdf-install.tmp netcdf-install.toc \
	  netcdf-install.tp netcdf-install.tps netcdf-install.vr \
	  netcdf-install.dvi netcdf-install.pdf netcdf-install.ps \
	  netcdf-install.html netcdf-c.aux netcdf-c.cp netcdf-c.cps \
	  netcdf-c.fn netcdf-c.ky netcdf-c.kys netcdf-c.log \
	  netcdf-c.pg netcdf-c.pgs netcdf-c.tmp netcdf-c.toc \
	  netcdf-c.tp netcdf-c.tps netcdf-c.vr netcdf-c.dvi \
	  netcdf-c.pdf netcdf-c.ps netcdf-c.html netcdf-tutorial.aux \
	  netcdf-tutorial.cp netcdf-tutorial.cps netcdf-tutorial.fn \
	  netcdf-tutorial.ky netcdf-tutorial.kys netcdf-tutorial.log \
	  netcdf-tutorial.pg netcdf-tutorial.pgs netcdf-tutorial.tmp \
	  netcdf-tutorial.toc netcdf-tutorial.tp netcdf-tutorial.tps \
	  netcdf-tutorial.vr netcdf-tutorial.dvi netcdf-tutorial.pdf \
	  netcdf-tutorial.ps netcdf-tutorial.html netcdf-f77.aux \
	  netcdf-f77.cp netcdf-f77.cps netcdf-f77.fn netcdf-f77.ky \
	  netcdf-f77.kys netcdf-f77.log netcdf-f77.pg netcdf-f77.pgs \
	  netcdf-f77.tmp netcdf-f77.toc netcdf-f77.tp netcdf-f77.tps \
	  netcdf-f77.vr netcdf-f77.dvi netcdf-f77.pdf netcdf-f77.ps \
	  netcdf-f77.html netcdf-f90.aux netcdf-f90.cp netcdf-f90.cps \
	  netcdf-f90.fn netcdf-f90.ky netcdf-f90.kys netcdf-f90.log \
	  netcdf-f90.pg netcdf-f90.pgs netcdf-f90.tmp netcdf-f90.toc \
	  netcdf-f90.tp netcdf-f90.tps netcdf-f90.vr netcdf-f90.dvi \
	  netcdf-f90.pdf netcdf-f90.ps netcdf-f90.html netcdf-cxx.aux \
	  netcdf-cxx.cp netcdf-cxx.cps netcdf-cxx.fn netcdf-cxx.ky \
	  netcdf-cxx.kys netcdf-cxx.log netcdf-cxx.pg netcdf-cxx.pgs \
	  netcdf-cxx.tmp netcdf-cxx.toc netcdf-cxx.tp netcdf-cxx.tps \
	  netcdf-cxx.vr netcdf-cxx.dvi netcdf-cxx.pdf netcdf-cxx.ps \
	  netcdf-cxx.html

maintainer-clean-aminfo:
	@list='$(INFO_DEPS)'; for i in $$list; do \
	  i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \
	  echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \
	  rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \
	done
install-docDATA: $(doc_DATA)
	@$(NORMAL_INSTALL)
	test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
	@list='$(doc_DATA)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f=$(am__strip_dir) \
	  echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
	  $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
	done

uninstall-docDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(doc_DATA)'; for p in $$list; do \
	  f=$(am__strip_dir) \
	  echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
	  rm -f "$(DESTDIR)$(docdir)/$$f"; \
	done
tags: TAGS
TAGS:

ctags: CTAGS
CTAGS:


distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
	$(MAKE) $(AM_MAKEFLAGS) \
	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
	  dist-info
check-am: all-am
check: check-am
all-am: Makefile $(INFO_DEPS) $(DATA)
installdirs:
	for dir in "$(DESTDIR)$(infodir)" "$(DESTDIR)$(docdir)"; do \
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
	done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-am

clean-am: clean-generic clean-libtool mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-generic

dvi: dvi-am

dvi-am: $(DVIS)

html: html-am

html-am: $(HTMLS)

info: info-am

info-am: $(INFO_DEPS)

install-data-am: install-docDATA install-info-am

install-dvi: install-dvi-am

install-dvi-am: $(DVIS)
	@$(NORMAL_INSTALL)
	test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)"
	@list='$(DVIS)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f=$(am__strip_dir) \
	  echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \
	  $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \
	done
install-exec-am:

install-html: install-html-am

install-html-am: $(HTMLS)
	@$(NORMAL_INSTALL)
	test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"
	@list='$(HTMLS)'; for p in $$list; do \
	  if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f=$(am__strip_dir) \
	  if test -d "$$d$$p"; then \
	    echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \
	    $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
	    echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
	    $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
	  else \
	    echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
	    $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
	  fi; \
	done
install-info: install-info-am

install-info-am: $(INFO_DEPS)
	@$(NORMAL_INSTALL)
	test -z "$(infodir)" || $(MKDIR_P) "$(DESTDIR)$(infodir)"
	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
	list='$(INFO_DEPS)'; \
	for file in $$list; do \
	  case $$file in \
	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
	  esac; \
	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
	  file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
	  for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
                       $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
	    if test -f $$ifile; then \
	      relfile=`echo "$$ifile" | sed 's|^.*/||'`; \
	      echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \
	      $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \
	    else : ; fi; \
	  done; \
	done
	@$(POST_INSTALL)
	@if (install-info --version && \
	     install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
	  list='$(INFO_DEPS)'; \
	  for file in $$list; do \
	    relfile=`echo "$$file" | sed 's|^.*/||'`; \
	    echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
	    install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
	  done; \
	else : ; fi
install-man:

install-pdf: install-pdf-am

install-pdf-am: $(PDFS)
	@$(NORMAL_INSTALL)
	test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)"
	@list='$(PDFS)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f=$(am__strip_dir) \
	  echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
	  $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
	done
install-ps: install-ps-am

install-ps-am: $(PSS)
	@$(NORMAL_INSTALL)
	test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)"
	@list='$(PSS)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f=$(am__strip_dir) \
	  echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(psdir)/$$f'"; \
	  $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(psdir)/$$f"; \
	done
installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-1 \
	maintainer-clean-2 maintainer-clean-3 maintainer-clean-4 \
	maintainer-clean-5 maintainer-clean-6 maintainer-clean-aminfo \
	maintainer-clean-generic maintainer-clean-vti

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-1 mostlyclean-2 mostlyclean-3 \
	mostlyclean-4 mostlyclean-5 mostlyclean-6 mostlyclean-aminfo \
	mostlyclean-generic mostlyclean-libtool mostlyclean-vti

pdf: pdf-am

pdf-am: $(PDFS)

ps: ps-am

ps-am: $(PSS)

uninstall-am: uninstall-docDATA uninstall-dvi-am uninstall-html-am \
	uninstall-info-am uninstall-pdf-am uninstall-ps-am

.MAKE: install-am install-strip

.PHONY: all all-am check check-am clean clean-generic clean-libtool \
	dist-info distclean distclean-generic distclean-libtool \
	distdir dvi dvi-am html html-am info info-am install \
	install-am install-data install-data-am install-docDATA \
	install-dvi install-dvi-am install-exec install-exec-am \
	install-html install-html-am install-info install-info-am \
	install-man install-pdf install-pdf-am install-ps \
	install-ps-am install-strip installcheck installcheck-am \
	installdirs maintainer-clean maintainer-clean-1 \
	maintainer-clean-2 maintainer-clean-3 maintainer-clean-4 \
	maintainer-clean-5 maintainer-clean-6 maintainer-clean-aminfo \
	maintainer-clean-generic maintainer-clean-vti mostlyclean \
	mostlyclean-1 mostlyclean-2 mostlyclean-3 mostlyclean-4 \
	mostlyclean-5 mostlyclean-6 mostlyclean-aminfo \
	mostlyclean-generic mostlyclean-libtool mostlyclean-vti pdf \
	pdf-am ps ps-am uninstall uninstall-am uninstall-docDATA \
	uninstall-dvi-am uninstall-html-am uninstall-info-am \
	uninstall-pdf-am uninstall-ps-am


# Rule to generate the ASCII text copies of the documentation.
.texi.txt: 
	makeinfo -o $*.txt --no-headers $(srcdir)/$<

# Generate the HTML version of the netcdf-3 C man page.
netcdf-man-3.html: $(top_srcdir)/libsrc/netcdf.3
	groff -man -Thtml $? > $@

# Generate the HTML version of the netcdf-3 F77 man page.
netcdf_f77-man.html: $(top_srcdir)/fortran/netcdf_f77.3
	groff -man -Thtml $? > $@

# Generate the HTML version of the netcdf-3 F90 man page.
netcdf_f90-man.html: $(top_srcdir)/f90/netcdf_f90.3
	groff -man -Thtml $? > $@

# Generate the HTML version of the ncgen man page.
ncgen-man-1.html: $(top_srcdir)/ncgen/ncgen.1
	groff -man -Thtml $? > $@

# Generate the HTML version of the ncdump man page.
ncdump-man-1.html: $(top_srcdir)/ncdump/ncdump.1
	groff -man -Thtml $? > $@

# Slightly modified copies of all the example programs are created in
# this directory, so that they can be included in the tutorial. To
# work within texinfo, all } must be changed to @}, and { to
# @{. (Because otherwise teinfo will eat the curly brakets in the
# code.) This requires sed.

# Copy C examples to this directory.
${c_examples}:
	sed -e 's/{/@{/' -e 's/}/@}/' $(top_srcdir)/examples/C/$@ > $@

# Copy F77 examples to this directory.
${f77_examples}:
	sed -e 's/{/@{/' -e 's/}/@}/' $(top_srcdir)/examples/F77/$@ > $@

# Copy F90 examples to this directory.
${f90_examples}:
	sed -e 's/{/@{/' -e 's/}/@}/' $(top_srcdir)/examples/F90/$@ > $@

# Copy CXX examples to this directory.
${cxx_examples}:
	sed -e 's/{/@{/' -e 's/}/@}/' $(top_srcdir)/examples/CXX/$@ > $@

# Copy CDL examples to this directory.
${cdl_examples}:
	sed -e 's/{/@{/' -e 's/}/@}/' $(top_srcdir)/examples/CDL/$@ > $@

# Automake 1.9.6 changed the naming of html output directories. These
# makefile targets override automake and get the old naming scheme,
# which is really more useful for us. But if the automake team
# persists with these cahnges, then one day I'll change over too.
netcdf.html: netcdf.texi defines.texi
	$(MAKEINFO) --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf.texi
	$(MAKEINFO) --no-split --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf.texi

netcdf-install.html: netcdf-install.texi defines.texi
	$(MAKEINFO) --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-install.texi
	$(MAKEINFO) --no-split --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-install.texi

netcdf-c.html: netcdf-c.texi defines.texi
	$(MAKEINFO) --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-c.texi
	$(MAKEINFO) --no-split --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-c.texi

netcdf-f77.html: netcdf-f77.texi defines.texi
	$(MAKEINFO) --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-f77.texi
	$(MAKEINFO) --no-split --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-f77.texi

netcdf-cxx.html: netcdf-cxx.texi defines.texi
	$(MAKEINFO) --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-cxx.texi
	$(MAKEINFO) --no-split --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-cxx.texi

netcdf-f90.html: netcdf-f90.texi defines.texi
	$(MAKEINFO) --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-f90.texi
	$(MAKEINFO) --no-split --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-f90.texi

netcdf-tutorial.html: netcdf-tutorial.texi defines.texi
	$(MAKEINFO) --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-tutorial.texi
	$(MAKEINFO) --no-split --html $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I$(srcdir) netcdf-tutorial.texi

# This builds the docs from source, if necessary, and tars up
# everything needed for the website. Run this and copy the resulting
# tarball to the /contents/netcdf/docs directory to update the on-line
# docs.
web-tarball: $(pdf_docs) $(html_mans) $(txt_docs) $(dvi_docs) $(ps_docs) $(info_docs) $(html_docs)
	tar cf netcdf_info.tar *.info*
	gzip -f netcdf_info.tar
	zip netcdf_info *.info
	tar cf netcdf_pdf.tar *.pdf
	gzip -f netcdf_pdf.tar
	zip netcdf_pdf *.pdf
	tar cf netcdf_html.tar $(html_dirs)
	gzip -f netcdf_html.tar
	zip netcdf_html $(html_dirs)
	tar cf netcdf_txt.tar *.txt
	gzip -f netcdf_txt.tar
	zip netcdf_txt *.txt
	cp $(top_srcdir)/ncdump/ncdump.1 .
	cp $(top_srcdir)/ncgen/ncgen.1 .
	cp $(top_srcdir)/libsrc/netcdf.3 .
	cp $(top_srcdir)/fortran/netcdf_f77.3 .
	cp $(top_srcdir)/f90/netcdf_f90.3 .
	tar cf netcdf_man.tar netcdf.3 netcdf_f77.3 netcdf_f90.3 ncdump.1 ncgen.1
	gzip -f netcdf_man.tar
	zip netcdf_man netcdf.3 netcdf_f77.3 netcdf_f90.3 ncdump.1 ncgen.1
	tar cf netcdf_docs.tar $(html_dirs) *.pdf *.txt *.html *.tar.gz *.zip 
	gzip -f netcdf_docs.tar
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
