summaryrefslogtreecommitdiffstats
path: root/config/examples.am
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2012-05-02 17:03:35 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2012-05-02 17:03:35 (GMT)
commit4a5efa8d60a0c85708a4fdce987e1a176fd7f493 (patch)
tree473b4ce4fb31ae078c6577f2e5c09706362d8df8 /config/examples.am
parent94c8e924facc93336f7603656a44dcc6fac5263c (diff)
downloadhdf5-4a5efa8d60a0c85708a4fdce987e1a176fd7f493.zip
hdf5-4a5efa8d60a0c85708a4fdce987e1a176fd7f493.tar.gz
hdf5-4a5efa8d60a0c85708a4fdce987e1a176fd7f493.tar.bz2
[svn-r22339] config/examples.am
Added code to install README in share/hdf5_examples Set permissions on README file to rw-r--r--. Tested with h5committest, make install and make uninstall.
Diffstat (limited to 'config/examples.am')
-rw-r--r--config/examples.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/examples.am b/config/examples.am
index 71bf8e5..bd3bac4 100644
--- a/config/examples.am
+++ b/config/examples.am
@@ -32,6 +32,7 @@
## The source files that the examples use which should be installed.
## INSTALL_SCRIPT_FILES
## INSTALL_TOP_SCRIPT_FILES
+## INSTALL_TOP_FILES
##
## EXAMPLEDIR
## The directory into which examples should be installed.
@@ -76,6 +77,12 @@ install-examples: $(EXAMPLEDIR) $(INSTALL_FILES)
(set -x; $(INSTALL) $$f $(EXAMPLEDIR)/. || exit 1);\
fi; \
done
+ @for f in X $(INSTALL_TOP_FILES); do \
+ if test $$f != X; then \
+ (set -x; $(INSTALL) $(srcdir)/$$f $(EXAMPLETOPDIR)/. || exit 1); \
+ chmod a-x $(EXAMPLETOPDIR)/$$f;\
+ fi; \
+ done
@for f in X $(INSTALL_TOP_SCRIPT_FILES); do \
if test $$f != X; then \
(set -x; $(INSTALL) $(srcdir)/$$f $(EXAMPLETOPDIR)/. || exit 1); \
@@ -89,6 +96,9 @@ uninstall-examples:
@if test -n "$(INSTALL_SCRIPT_FILES)" -a -d $(EXAMPLEDIR); then \
set -x; cd $(EXAMPLEDIR) && $(RM) $(INSTALL_SCRIPT_FILES); \
fi
+ @if test -n "$(INSTALL_TOP_FILES)" -a -d $(EXAMPLETOPDIR); then \
+ set -x; cd $(EXAMPLETOPDIR) && $(RM) $(INSTALL_TOP_FILES); \
+ fi
@if test -n "$(INSTALL_TOP_SCRIPT_FILES)" -a -d $(EXAMPLETOPDIR); then \
set -x; cd $(EXAMPLETOPDIR) && $(RM) $(INSTALL_TOP_SCRIPT_FILES); \
fi