summaryrefslogtreecommitdiffstats
path: root/c++/examples/Makefile.am
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-05-26 15:43:20 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-26 15:43:20 (GMT)
commit4cebd8aa6c965fe2e5dde6dbff36b2be3ca58bf1 (patch)
tree9ae11843b88b3e3fba8d94554fe339f501ac3aed /c++/examples/Makefile.am
parent32f8fed120df107b46ba73f60429f14f71b30012 (diff)
downloadhdf5-4cebd8aa6c965fe2e5dde6dbff36b2be3ca58bf1.zip
hdf5-4cebd8aa6c965fe2e5dde6dbff36b2be3ca58bf1.tar.gz
hdf5-4cebd8aa6c965fe2e5dde6dbff36b2be3ca58bf1.tar.bz2
Make examples installation respect DESTDIR. Fixes
HDFFV-11060.
Diffstat (limited to 'c++/examples/Makefile.am')
-rw-r--r--c++/examples/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/examples/Makefile.am b/c++/examples/Makefile.am
index 0648504..cbec8f8 100644
--- a/c++/examples/Makefile.am
+++ b/c++/examples/Makefile.am
@@ -49,8 +49,8 @@ CXX_API=yes
# Where to install examples
# Note: no '/' after DESTDIR. Explanation in commence.am
-EXAMPLEDIR=$(examplesdir)/c++
-EXAMPLETOPDIR=$(examplesdir)
+EXAMPLEDIR=${DESTDIR}$(examplesdir)/c++
+EXAMPLETOPDIR=${DESTDIR}$(examplesdir)
# How to build programs using h5c++
$(EXTRA_PROG): $(H5CPP)