1#
2# Copyright by The HDF Group.
3# Copyright by the Board of Trustees of the University of Illinois.
4# All rights reserved.
5#
6# This file is part of HDF5.  The full HDF5 copyright notice, including
7# terms governing use, modification, and redistribution, is contained in
8# the COPYING file, which can be found at the root of the source code
9# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
10# If you do not have access to either file, you may request a copy from
11# help@hdfgroup.org.
12##
13## Makefile.am
14## Run automake to generate a Makefile.in from this file.
15#
16# High-Level API C++ Makefile(.in)
17#
18
19include $(top_srcdir)/config/commence.am
20
21SUBDIRS=src test
22DIST_SUBDIRS=src test examples
23
24# Install examples
25install-examples uninstall-examples:
26	@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
27
28installcheck-local:
29	@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
30
31# Clean examples when check-clean is invoked
32check-clean ::
33	@$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1;
34	@for d in X $(SUBDIRS) examples; do                                   \
35	    if test $$d != X && test $$d != .; then                           \
36	        (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;     \
37	    fi;                                                               \
38	done
39
40include $(top_srcdir)/config/conclude.am
41