You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
3.6 KiB
67 lines
3.6 KiB
11 years ago
|
diff -up hdf-4.2.10/config/examples.am.destdir hdf-4.2.10/config/examples.am
|
||
|
--- hdf-4.2.10/config/examples.am.destdir 2014-02-09 19:28:50.000000000 -0700
|
||
|
+++ hdf-4.2.10/config/examples.am 2014-02-14 10:02:35.039386643 -0700
|
||
|
@@ -45,7 +45,7 @@ CLEANFILES=$(EXAMPLE_PROG)
|
||
|
|
||
|
# How to create EXAMPLEDIR if it doesn't already exist
|
||
|
$(EXAMPLEDIR):
|
||
|
- mkdir -p $@
|
||
|
+ mkdir -p $(DESTDIR)$@
|
||
|
|
||
|
# Install and uninstall rules. We install the source files, not the
|
||
|
# example programs themselves.
|
||
|
@@ -57,39 +57,39 @@ uninstall-local:
|
||
|
install-examples: $(EXAMPLEDIR)
|
||
|
@for f in X $(INSTALL_FILES); do \
|
||
|
if test $$f != X; then \
|
||
|
- (set -x; $(INSTALL) $(srcdir)/$$f $(EXAMPLEDIR)/. || exit 1); \
|
||
|
- chmod a-x $(EXAMPLEDIR)/$$f; \
|
||
|
+ (set -x; $(INSTALL) $(srcdir)/$$f $(DESTDIR)$(EXAMPLEDIR)/. || exit 1); \
|
||
|
+ chmod a-x $(DESTDIR)$(EXAMPLEDIR)/$$f; \
|
||
|
fi; \
|
||
|
done
|
||
|
@for f in X $(INSTALL_SCRIPT_FILES); do \
|
||
|
if test $$f != X; then \
|
||
|
- (set -x; $(INSTALL) $(srcdir)/$$f $(EXAMPLEDIR)/. || exit 1); \
|
||
|
+ (set -x; $(INSTALL) $(srcdir)/$$f $(DESTDIR)$(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; \
|
||
|
+ (set -x; $(INSTALL) $(srcdir)/$$f $(DESTDIR)$(EXAMPLETOPDIR)/. || exit 1); \
|
||
|
+ chmod a-x $(DESTDIR)$(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); \
|
||
|
+ (set -x; $(INSTALL) $(srcdir)/$$f $(DESTDIR)$(EXAMPLETOPDIR)/. || exit 1); \
|
||
|
fi; \
|
||
|
done
|
||
|
|
||
|
uninstall-examples:
|
||
|
- @if test -n "$(INSTALL_FILES)" -a -d $(EXAMPLEDIR); then \
|
||
|
- set -x; cd $(EXAMPLEDIR) && $(RM) $(INSTALL_FILES); \
|
||
|
+ @if test -n "$(INSTALL_FILES)" -a -d $(DESTDIR)$(EXAMPLEDIR); then \
|
||
|
+ set -x; cd $(DESTDIR)$(EXAMPLEDIR) && $(RM) $(INSTALL_FILES); \
|
||
|
fi
|
||
|
- @if test -n "$(INSTALL_SCRIPT_FILES)" -a -d $(EXAMPLEDIR); then \
|
||
|
- set -x; cd $(EXAMPLEDIR) && $(RM) $(INSTALL_SCRIPT_FILES); \
|
||
|
+ @if test -n "$(INSTALL_SCRIPT_FILES)" -a -d $(DESTDIR)$(EXAMPLEDIR); then \
|
||
|
+ set -x; cd $(DESTDIR)$(EXAMPLEDIR) && $(RM) $(INSTALL_SCRIPT_FILES); \
|
||
|
fi
|
||
|
- @if test -n "$(INSTALL_TOP_FILES)" -a -d $(EXAMPLETOPDIR); then \
|
||
|
- set -x; cd $(EXAMPLETOPDIR) && $(RM) $(INSTALL_TOP_FILES); \
|
||
|
+ @if test -n "$(INSTALL_TOP_FILES)" -a -d $(DESTDIR)$(EXAMPLETOPDIR); then \
|
||
|
+ set -x; cd $$(DESTDIR)(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); \
|
||
|
+ @if test -n "$(INSTALL_TOP_SCRIPT_FILES)" -a -d $(DESTDIR)$(EXAMPLETOPDIR); then \
|
||
|
+ set -x; cd $(DESTDIR)$(EXAMPLETOPDIR) && $(RM) $(INSTALL_TOP_SCRIPT_FILES); \
|
||
|
fi
|
||
|
|
||
|
installcheck-local:
|