include $(top_srcdir)/config/commence.am if HDF_BUILD_FORTRAN FORTRAN_DIR = fortran else FORTRAN_DIR = endif # src folder in root Makefile, build other folders now SUBDIRS = src $(FORTRAN_DIR) test util DIST_SUBDIRS = src fortran test util examples installcheck-local: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; # 'make install-all' also installs examples install-all: @$(MAKE) $(AM_MAKEFLAGS) install @$(MAKE) $(AM_MAKEFLAGS) install-examples uninstall-all: @$(MAKE) $(AM_MAKEFLAGS) uninstall @$(MAKE) $(AM_MAKEFLAGS) uninstall-examples # Install examples recursively install-examples uninstall-examples: @@SETX@; for d in examples $(FORTRAN_DIR); do \ (cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ done