need -p for mkdir and add back in proper quoting
authorvapier <vapier>
Fri, 30 Sep 2005 02:02:03 +0000 (02:02 +0000)
committervapier <vapier@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 30 Sep 2005 02:02:03 +0000 (02:02 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/eet@17081 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

doc/Makefile.am

index 70cb425..36cd926 100644 (file)
@@ -23,13 +23,13 @@ clean-local:
 
 # rule to install the documentation in $(docdir)
 install-data-local:
-       @if ! test -d $(DESTDIR)$(datadir)/$(PACKAGE); then \
-         mkdir $(DESTDIR)$(datadir)/$(PACKAGE); \
+       @if ! test -d "$(DESTDIR)$(datadir)/$(PACKAGE)"; then \
+         mkdir -p "$(DESTDIR)$(datadir)/$(PACKAGE)"; \
        fi
-       @if ! test -d $(DESTDIR)$(docdir); then \
-         mkdir $(DESTDIR)$(docdir); \
+       @if ! test -d "$(DESTDIR)$(docdir)"; then \
+         mkdir -p "$(DESTDIR)$(docdir)"; \
        fi
-       @cp -pr html/ man/ latex/ xml/ $(DESTDIR)$(docdir)
+       @cp -pr html/ man/ latex/ xml/ "$(DESTDIR)$(docdir)"
 
 # rule to uninstall the documentation
 uninstall-local: