# Makefile.in generated by automake 1.13.4 from Makefile.am.
# tests/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994-2013 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.



# Makefile.am for ropp_io/tests
# =============================

# 1. Useful settings
# ------------------



am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__make_running_with_option = \
  case $${target_option-} in \
      ?) ;; \
      *) echo "am__make_running_with_option: internal error: invalid" \
              "target option '$${target_option-}' specified" >&2; \
         exit 1;; \
  esac; \
  has_opt=no; \
  sane_makeflags=$$MAKEFLAGS; \
  if $(am__is_gnu_make); then \
    sane_makeflags=$$MFLAGS; \
  else \
    case $$MAKEFLAGS in \
      *\\[\ \	]*) \
        bs=\\; \
        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
    esac; \
  fi; \
  skip_next=no; \
  strip_trailopt () \
  { \
    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
  }; \
  for flg in $$sane_makeflags; do \
    test $$skip_next = yes && { skip_next=no; continue; }; \
    case $$flg in \
      *=*|--*) continue;; \
        -*I) strip_trailopt 'I'; skip_next=yes;; \
      -*I?*) strip_trailopt 'I';; \
        -*O) strip_trailopt 'O'; skip_next=yes;; \
      -*O?*) strip_trailopt 'O';; \
        -*l) strip_trailopt 'l'; skip_next=yes;; \
      -*l?*) strip_trailopt 'l';; \
      -[dEDm]) skip_next=yes;; \
      -[JT]) skip_next=yes;; \
    esac; \
    case $$flg in \
      *$$target_option*) has_opt=yes; break;; \
    esac; \
  done; \
  test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/ropp_io
pkgincludedir = $(includedir)/ropp_io
pkglibdir = $(libdir)/ropp_io
pkglibexecdir = $(libexecdir)/ropp_io
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
noinst_PROGRAMS = t_netcdf$(EXEEXT) nml_diff$(EXEEXT) nc_diff$(EXEEXT)
am__append_1 = t_eum2ropp

# 6. Bufr programs
# ----------------
am__append_2 = t_ropp2bufr
am__append_3 = t_eum2bufr
am__append_4 = t_ropp2bufr_eccodes
am__append_5 = t_eum2bufr_eccodes
#am__append_6 = t_ropp2bufr

# 7. Grib programs
# ----------------
am__append_7 = t_grib2bgrasc
##am__append_8 = t_grib2bgrasc
subdir = tests
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
	$(top_srcdir)/mkinstalldirs
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/cm_compiler_defaults.m4 \
	$(top_srcdir)/m4/cm_compilers.m4 \
	$(top_srcdir)/m4/cm_fortran.m4 \
	$(top_srcdir)/m4/cm_libraries.m4 $(top_srcdir)/m4/cm_tools.m4 \
	$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
am_nc_diff_OBJECTS = nc_diff.$(OBJEXT)
nc_diff_OBJECTS = $(am_nc_diff_OBJECTS)
nc_diff_LDADD = $(LDADD)
nc_diff_DEPENDENCIES = ../build/libropp_io.a
am_nml_diff_OBJECTS = nml_diff.$(OBJEXT)
nml_diff_OBJECTS = $(am_nml_diff_OBJECTS)
nml_diff_LDADD = $(LDADD)
nml_diff_DEPENDENCIES = ../build/libropp_io.a
am_t_netcdf_OBJECTS = t_netcdf.$(OBJEXT)
t_netcdf_OBJECTS = $(am_t_netcdf_OBJECTS)
t_netcdf_LDADD = $(LDADD)
t_netcdf_DEPENDENCIES = ../build/libropp_io.a
SCRIPTS = $(noinst_SCRIPTS)
AM_V_P = $(am__v_P_$(V))
am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_$(V))
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
am__v_GEN_0 = @echo "  GEN     " $@;
am__v_GEN_1 = 
AM_V_at = $(am__v_at_$(V))
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
am__v_at_0 = @
am__v_at_1 = 
DEFAULT_INCLUDES = -I.
depcomp =
am__depfiles_maybe =
FCCOMPILE = $(FC) $(AM_FCFLAGS) $(FCFLAGS)
AM_V_FC = $(am__v_FC_$(V))
am__v_FC_ = $(am__v_FC_$(AM_DEFAULT_VERBOSITY))
am__v_FC_0 = @echo "  FC      " $@;
am__v_FC_1 = 
FCLD = $(FC)
FCLINK = $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \
	$@
AM_V_FCLD = $(am__v_FCLD_$(V))
am__v_FCLD_ = $(am__v_FCLD_$(AM_DEFAULT_VERBOSITY))
am__v_FCLD_0 = @echo "  FCLD    " $@;
am__v_FCLD_1 = 
SOURCES = $(nc_diff_SOURCES) $(nml_diff_SOURCES) $(t_netcdf_SOURCES)
DIST_SOURCES = $(nc_diff_SOURCES) $(nml_diff_SOURCES) \
	$(t_netcdf_SOURCES)
am__can_run_installinfo = \
  case $$AM_UPDATE_INFO_DIR in \
    n|no|NO) false;; \
    *) (install-info --version) >/dev/null 2>&1;; \
  esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates.  Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
  BEGIN { nonempty = 0; } \
  { items[$$0] = 1; nonempty = 1; } \
  END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique.  This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
  list='$(am__tagged_files)'; \
  unique=`for i in $$list; do \
    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = aclocal-1.13
AMTAR = $${TAR-tar}
AM_CCFLAGS = 
AM_CPPFLAGS = -DpgiFortran
AM_DEFAULT_VERBOSITY = 1
AM_FCFLAGS =  -I../build
AM_FFLAGS = 
AM_LDFLAGS = 
AUTOCONF = autoconf
AUTOHEADER = autoheader
AUTOMAKE = automake-1.13
AWK = gawk
CYGPATH_W = echo
DEFS = -DPACKAGE_NAME=\"ropp_io\" -DPACKAGE_TARNAME=\"ropp_io\" -DPACKAGE_VERSION=\"10.0\" -DPACKAGE_STRING=\"ropp_io\ 10.0\" -DPACKAGE_BUGREPORT=\"romsaf@metoffice.gov.uk\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ropp_io\" -DVERSION=\"10.0\" -DHAVE_MODULE_NETCDF=1 -DHAVE_MODULE_ROPP_UTILS=1 -DHAVE_MODULE_TYPESIZES=1 -DHAVE_LIBRARY_ECCODES_BUFR=1 -DHAVE_LIBRARY_BUFR=1 -DHAVE_LIBRARY_ECCODES_GRIB=1 -DHAVE_LIBRARY_HDF5=1 -DHAVE_LIBRARY_NETCDF=1 -DHAVE_LIBRARY_SOFA=1 -DHAVE_LIBRARY_ROPP_UTILS=1
ECHO_C = 
ECHO_N = -n
ECHO_T = 
EXEEXT = 
FC = gfortran
FCFLAGS = -O2 -I/data2/xinjiaz/utility/ROPP_ROOT/gfortran/include -I/home/xinjiaz/miniconda3/envs/ro/include
FCFLAGS_f90 = 
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LDFLAGS = -L/home/xinjiaz/miniconda3/envs/ro/lib -Wl,-rpath,/home/xinjiaz/miniconda3/envs/ro/lib -L/data2/xinjiaz/utility/ROPP_ROOT/gfortran/lib -L/data2/xinjiaz/utility/ROPP_ROOT/gfortran/lib64
LIBOBJS = 
LIBS = -lropp_utils -lsofa -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz -ldl -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz -ldl -leccodes_f90 -leccodes -lbufr -leccodes_f90 -leccodes 
LTLIBOBJS = 
M4 = /usr/bin/m4
M4_OPTS = 
MAKEINFO = makeinfo
MKDIR_P = /usr/bin/mkdir -p
OBJEXT = o
PACKAGE = ropp_io
PACKAGE_BUGREPORT = romsaf@metoffice.gov.uk
PACKAGE_NAME = ropp_io
PACKAGE_STRING = ropp_io 10.0
PACKAGE_TARNAME = ropp_io
PACKAGE_URL = 
PACKAGE_VERSION = 10.0
PATH_SEPARATOR = :
RANLIB = ranlib
ROBODOC = 
SET_MAKE = 
SHELL = /bin/sh
STRIP = 
SVN2CL = 
VERSION = 10.0
abs_builddir = /data2/xinjiaz/utility/ropp/ropp-10.0_v3.18/ropp_io/tests
abs_srcdir = /data2/xinjiaz/utility/ropp/ropp-10.0_v3.18/ropp_io/tests
abs_top_builddir = /data2/xinjiaz/utility/ropp/ropp-10.0_v3.18/ropp_io
abs_top_srcdir = /data2/xinjiaz/utility/ropp/ropp-10.0_v3.18/ropp_io
ac_ct_FC = 
am__leading_dot = .
am__tar = $${TAR-tar} chof - "$$tardir"
am__untar = $${TAR-tar} 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
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} /data2/xinjiaz/utility/ropp/ropp-10.0_v3.18/ropp_io/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = $(MKDIR_P)
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /data2/xinjiaz/utility/ROPP_ROOT/gfortran
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 = ..
SUFFIXES = .sh .pl
t_netcdf_SOURCES = t_netcdf.f90
nml_diff_SOURCES = nml_diff.f90
nc_diff_SOURCES = nc_diff.f90

# 5. Some scripts for testing
# ---------------------------
noinst_SCRIPTS = t_ropp2ropp t_ucar2ropp t_gfz2ropp t_bgrasc2ropp \
	$(am__append_1) $(am__append_2) $(am__append_3) \
	$(am__append_4) $(am__append_5) $(am__append_6) \
	$(am__append_7) $(am__append_8)

# 8. Libraries to link in
# -----------------------
LDADD = ../build/libropp_io.a

# 9. Files to be cleaned
# ----------------------
CLEANFILES = *.stb $(MODULES)
DISTCLEANFILES = t_ropp2ropp t_ropp2bufr \
                 t_ropp2bufr_eccodes \
                 t_gfz2ropp \
                 t_ucar2ropp \
                 t_grib2bgrasc t_bgrasc2ropp \
                 t_eum2ropp t_eum2bufr \
                 t_eum2bufr_eccodes \
                 *.nc *.bufr *.bnc *.dat *.cdl t_ropp2ropp.log


# 10. Stuff to go into the distribution
# -------------------------------------
EXTRA_DIST = t_ropp2ropp.sh t_ropp2bufr.sh \
             t_ropp2bufr_eccodes.sh \
             t_gfz2ropp.sh \
             t_ucar2ropp.sh \
             t_grib2bgrasc.sh t_bgrasc2ropp.sh \
             t_eum2ropp.sh t_eum2bufr.sh \
             t_eum2bufr_eccodes.sh \
             nml_diff.f90 nc_diff.f90 \
             example_test.log


# 11. Compilation rules for scripts
# ---------------------------------
editsh = sed \
	-e 's,@''etcdir''@,$(etcdir),g' \
	-e 's,@''datadir''@,$(datadir),g' \
	-e 's,@''pkgdatadir''@,$(pkgdatadir),g' \
	-e 's,@''defaultcenter''@,$(defaultcenter),g' \
	-e 's,@''M4''@,$(M4),g' \
	-e 's,@''AWK''@,$(AWK),g' \
	-e 's,@''SHELL''@,$(SHELL),g' \
	-e 's,@''VERSION''@,$(VERSION),g' \
	-e 's,@''PACKAGE''@,$(PACKAGE),g'

editpl = sed \
	-e 's,@''etcdir''@,$(etcdir),g' \
	-e 's,@''datadir''@,$(datadir),g' \
	-e 's,@''pkgdatadir''@,$(pkgdatadir),g' \
	-e 's,@''perldir''@,$(perldir),g' \
	-e 's,@''defaultcenter''@,$(defaultcenter),g' \
	-e 's,@''PERL''@,$(PERL),g' \
	-e 's,@''VERSION''@,$(VERSION),g' \
	-e 's,@''PACKAGE''@,$(PACKAGE),g'

all: all-am

.SUFFIXES:
.SUFFIXES: .sh .pl .f90 .o .obj
$(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 ) \
	        && { if test -f $@; then exit 0; else break; fi; }; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps tests/Makefile'; \
	$(am__cd) $(top_srcdir) && \
	  $(AUTOMAKE) --foreign --ignore-deps tests/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
$(am__aclocal_m4_deps):

clean-noinstPROGRAMS:
	-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)

nc_diff$(EXEEXT): $(nc_diff_OBJECTS) $(nc_diff_DEPENDENCIES) $(EXTRA_nc_diff_DEPENDENCIES) 
	@rm -f nc_diff$(EXEEXT)
	$(AM_V_FCLD)$(FCLINK) $(nc_diff_OBJECTS) $(nc_diff_LDADD) $(LIBS)

nml_diff$(EXEEXT): $(nml_diff_OBJECTS) $(nml_diff_DEPENDENCIES) $(EXTRA_nml_diff_DEPENDENCIES) 
	@rm -f nml_diff$(EXEEXT)
	$(AM_V_FCLD)$(FCLINK) $(nml_diff_OBJECTS) $(nml_diff_LDADD) $(LIBS)

t_netcdf$(EXEEXT): $(t_netcdf_OBJECTS) $(t_netcdf_DEPENDENCIES) $(EXTRA_t_netcdf_DEPENDENCIES) 
	@rm -f t_netcdf$(EXEEXT)
	$(AM_V_FCLD)$(FCLINK) $(t_netcdf_OBJECTS) $(t_netcdf_LDADD) $(LIBS)

mostlyclean-compile:
	-rm -f *.$(OBJEXT)

distclean-compile:
	-rm -f *.tab.c

.f90.o:
	$(AM_V_FC)$(FCCOMPILE) -c -o $@ $(FCFLAGS_f90) $<

.f90.obj:
	$(AM_V_FC)$(FCCOMPILE) -c -o $@ $(FCFLAGS_f90) `$(CYGPATH_W) '$<'`

ID: $(am__tagged_files)
	$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags

tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
	set x; \
	here=`pwd`; \
	$(am__define_uniq_tagged_files); \
	shift; \
	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
	  test -n "$$unique" || unique=$$empty_fix; \
	  if test $$# -gt 0; then \
	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	      "$$@" $$unique; \
	  else \
	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	      $$unique; \
	  fi; \
	fi
ctags: ctags-am

CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
	$(am__define_uniq_tagged_files); \
	test -z "$(CTAGS_ARGS)$$unique" \
	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
	     $$unique

GTAGS:
	here=`$(am__cd) $(top_builddir) && pwd` \
	  && $(am__cd) $(top_srcdir) \
	  && gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am

cscopelist-am: $(am__tagged_files)
	list='$(am__tagged_files)'; \
	case "$(srcdir)" in \
	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
	  *) sdir=$(subdir)/$(srcdir) ;; \
	esac; \
	for i in $$list; do \
	  if test -f "$$i"; then \
	    echo "$(subdir)/$$i"; \
	  else \
	    echo "$$sdir/$$i"; \
	  fi; \
	done >> $(top_builddir)/cscope.files

distclean-tags:
	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags

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 "$(distdir)/$$file"; then \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
	  else \
	    test -f "$(distdir)/$$file" \
	    || cp -p $$d/$$file "$(distdir)/$$file" \
	    || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS) $(SCRIPTS)
installdirs:
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:
	if test -z '$(STRIP)'; then \
	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	      install; \
	else \
	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
	fi
mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
	distclean-tags

dvi: dvi-am

dvi-am:

html: html-am

html-am:

info: info-am

info-am:

install-data-am:

install-dvi: install-dvi-am

install-dvi-am:

install-exec-am:

install-html: install-html-am

install-html-am:

install-info: install-info-am

install-info-am:

install-man:

install-pdf: install-pdf-am

install-pdf-am:

install-ps: install-ps-am

install-ps-am:

installcheck-am:

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

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-compile mostlyclean-generic

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am:

.MAKE: install-am install-strip

.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
	clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \
	distclean-compile distclean-generic distclean-tags distdir dvi \
	dvi-am html html-am info info-am install install-am \
	install-data install-data-am 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-generic mostlyclean mostlyclean-compile \
	mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
	uninstall-am


.sh:
	@rm -f $@ $@.tmp
	@$(editsh) $< >$@.tmp
	@chmod +x $@.tmp
	@mv $@.tmp $@

.pl:
	@rm -f $@ $@.tmp
	@$(editpl) $< >$@.tmp
	@chmod +x $@.tmp
	@mv $@.tmp $@

# 12. Dependencies
# ----------------

t_netcdf.$(OBJEXT) : t_netcdf.f90

nml_diff.$(OBJEXT) : nml_diff.f90

nc_diff.$(OBJEXT) : nc_diff.f90

# 13. Additional things to do
# ---------------------------

test: test_netcdf test_ropp test_bufr test_gfz test_ucar test_grib test_bgrasc test_eum

test_netcdf: ./t_netcdf
	@ echo ""
	@ echo "Testing netCDF Fortran 90 write interfaces..."
	@ echo ""
	@ ./t_netcdf
	@ echo ""

test_ropp: ./t_ropp2ropp
	@ echo ""
	@ echo "Testing ROPP conversion tool..."
	@ echo ""
	@ ./t_ropp2ropp -r -n -m -t
	@ echo ""

test_bufr: test_ecbufr test_mobufr test_eum2bufr test_eccodesbufr test_eum2bufr_eccodes

test_ecbufr: ./t_ropp2bufr
	@ echo ""
	@ echo "Testing BUFR encode/decode [ECMWF library] ..."
	@ echo ""
	@ ./t_ropp2bufr
	@ echo ""
test_eum2bufr: ./t_eum2bufr
	@ echo ""
	@ echo "Testing BUFR encode/decode [EUM netCDF4 files] ..."
	@ echo ""
	@ ./t_eum2bufr
	@ echo ""
#test_eum2bufr:;	@ echo ""
#test_ecbufr:;	@ echo ""
#test_eum2bufr:;	@ echo ""

test_eccodesbufr: ./t_ropp2bufr_eccodes
	@ echo ""
	@ echo "Testing BUFR encode/decode [ecCodes library] ..."
	@ echo ""
	@ ./t_ropp2bufr_eccodes
	@ echo ""
test_eum2bufr_eccodes: ./t_eum2bufr_eccodes
	@ echo ""
	@ echo "Testing BUFR encode/decode [EUM netCDF4 files, ecCodes library] ..."
	@ echo ""
	@ ./t_eum2bufr_eccodes
	@ echo ""
#test_eum2bufr_eccodes:;	@ echo ""
#test_eccodesbufr:;	@ echo ""
#test_eum2bufr_eccodes:;	@ echo ""

#test_mobufr: ./t_ropp2bufr
#	@ echo ""
#	@ echo "Testing BUFR encode/decode [MetDB library] ..."
#	@ echo ""
#	@ ./t_ropp2bufr
#	@ echo ""
test_mobufr:; @ echo ""

test_gfz: ./t_gfz2ropp
	@ echo ""
	@ echo "Testing GFZ-to-netCDF conversion tool ..."
	@ echo ""
	@ ./t_gfz2ropp
	@ echo ""

test_ucar: ./t_ucar2ropp
	@ echo ""
	@ echo "Testing UCAR-to-ROPP netCDF conversion tool ..."
	@ echo ""
	@ ./t_ucar2ropp
	@ echo ""

test_grib: ./t_grib2bgrasc
	@ echo ""
	@ echo "Testing [ECMWF ECCODES] GRIB-to-BGRASC conversion tool ..."
	@ echo ""
	@ ./t_grib2bgrasc
	@ echo ""
##test_grib: ./t_grib2bgrasc
##	@ echo ""
##	@ echo "Testing [ECMWF GRIB_API] GRIB-to-BGRASC conversion tool ..."
##	@ echo ""
##	@ ./t_grib2bgrasc
##	@ echo ""
#test_grib:; @ echo ""

test_bgrasc: ./t_bgrasc2ropp

	@ echo ""
	@ echo "Testing BGRASC-to-ROPP conversion tool ..."
	@ echo ""
	@ ./t_bgrasc2ropp
	@ echo ""

test_eum: ./t_eum2ropp
	@ echo ""
	@ echo "Testing EUM netCDF4-to-ROPP conversion tool..."
	@ echo ""
	@ ./t_eum2ropp
	@ echo ""
#test_eum:;	@ echo ""

# 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:
