diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile.am | 2 | ||||
-rw-r--r-- | examples/Makefile.in | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index d3fe9c9..94cceae 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -65,7 +65,7 @@ $(EXTLINK_DIRS): CHECK_CLEANFILES+=$(EXTLINK_DIRS) # Example directory -EXAMPLEDIR=$(docdir)/hdf5/examples/c +EXAMPLEDIR=$(exec_prefix)/examples/c # List dependencies for each program. Normally, automake would take # care of this for us, but if we tell automake about the programs it diff --git a/examples/Makefile.in b/examples/Makefile.in index 04c5f2d..4d6edfb 100644 --- a/examples/Makefile.in +++ b/examples/Makefile.in @@ -355,7 +355,7 @@ INSTALL_FILES = h5_write.c h5_read.c h5_extend_write.c h5_chunk_read.c \ EXTLINK_DIRS = red blue u2w # Example directory -EXAMPLEDIR = $(docdir)/hdf5/examples/c +EXAMPLEDIR = $(exec_prefix)/examples/c # Assume that all tests in this directory are examples, and tell # conclude.am when to build them. @@ -636,12 +636,13 @@ install-data-local: uninstall-local: @$(MAKE) $(AM_MAKEFLAGS) uninstall-examples -install-examples: $(EXAMPLEDIR) $(INSTALL_FILES) +install-examples: $(EXAMPLEDIR) $(INSTALL_FILES) $(TEST_SCRIPT) @for f in X $(INSTALL_FILES); do \ if test $$f != X; then \ (set -x; $(INSTALL) $(srcdir)/$$f $(EXAMPLEDIR)/. || exit 1);\ fi; \ done + @(set -x; $(INSTALL) $(builddir)/$(TEST_SCRIPT) $(EXAMPLEDIR)/.. || exit 1); uninstall-examples: @if test -n "$(INSTALL_FILES)" -a -d $(EXAMPLEDIR); then \ |