From f6a74a24f7b3093455ef10a4e441c2e1bd61b0ef Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 29 Sep 2005 07:56:42 +0000 Subject: [PATCH] respect $(DESTDIR) as reported by Mike Russo via e-mail SVN revision: 17060 --- legacy/eet/doc/Makefile.am | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/legacy/eet/doc/Makefile.am b/legacy/eet/doc/Makefile.am index db146449be..844a02f880 100644 --- a/legacy/eet/doc/Makefile.am +++ b/legacy/eet/doc/Makefile.am @@ -19,13 +19,13 @@ doc-build.stamp: doc-prepare.stamp # rule to install the documentation in $(docdir) install-data-local: - @if ! test -d $(datadir)/$(PACKAGE); then \ - mkdir $(datadir)/$(PACKAGE); \ + @if ! test -d "$(DESTDIR)$(datadir)/$(PACKAGE)"; then \ + mkdir "$(DESTDIR)$(datadir)/$(PACKAGE)"; \ fi - @if ! test -d $(docdir); then \ - mkdir $(docdir); \ + @if ! test -d "$(DESTDIR)$(docdir)"; then \ + mkdir "$(DESTDIR)$(docdir)"; \ fi - @cp -pr html/ man/ latex/ xml/ $(docdir) + @cp -pr html/ man/ latex/ xml/ "$(DESTDIR)$(docdir)" # rule to uninstall the documentation uninstall-local: