Changeset 2492


Ignore:
Timestamp:
May 28, 2011, 1:12:39 AM (10 years ago)
Author:
Peter
Message:

check for empty htmldir (again)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/Makefile.am

    r2491 r2492  
    7676
    7777installdirs-local:
    78   $(MKDIR_P) "$(DESTDIR)$(htmldir)";
     78  test -z "$(DESTDIR)$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)";
    7979
    8080# local install rules does not generate any documentation, in order to
     
    8787  @$(NORMAL_INSTALL)
    8888  @if test -d $(DX_HTML_OUTPUT); then \
    89     echo "$(MKDIR_P) $(DESTDIR)$(htmldir)"; \
    90     $(MKDIR_P) $(DESTDIR)$(htmldir);\
    91     echo "$(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)";\
    92     $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir); \
     89    test -z "$(DESTDIR)$(htmldir)" || \
     90    { $(MKDIR_P) "$(DESTDIR)$(htmldir)"; \
     91      $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir); \
     92    } \
    9393  fi
    9494
Note: See TracChangeset for help on using the changeset viewer.