respect $(DESTDIR) as reported by Mike Russo via e-mail
authorvapier <vapier>
Thu, 29 Sep 2005 07:56:42 +0000 (07:56 +0000)
committervapier <vapier@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Sep 2005 07:56:42 +0000 (07:56 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/eet@17060 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

doc/Makefile.am

index db14644..844a02f 100644 (file)
@@ -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: