From: "Xiang, Haihao" <[email protected]>

install -d /usr/share/doc/libva/html
install -m 0644 html-out/* /usr/share/doc/libva/html
install: omitting directory `html-out/search'
make[2]: *** [install-html-local] Error 1
make[2]: Leaving directory `/home/xhh/graphics/ex/vaapi/libva/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/xhh/graphics/ex/vaapi/libva/doc'
make: *** [install-recursive] Error 1

Signed-off-by: Xiang, Haihao <[email protected]>
---
 doc/Makefile.am |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 2770ecb..2715ed1 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -48,7 +48,14 @@ if ENABLE_DOCS
 html: html-out/index.html
 install-html-local:
        install -d $(DESTDIR)$(docdir)/html
-       install -m 0644 html-out/* $(DESTDIR)$(docdir)/html
+       for file in `ls html-out/` ; do \
+           if test -f html-out/$$file ; then \
+               install -m 0644 html-out/$$file $(DESTDIR)$(docdir)/html ; \
+           else \
+               install -d $(DESTDIR)$(docdir)/html/$$file ; \
+               install -m 0644 html-out/$$file/* 
$(DESTDIR)$(docdir)/html/$$file; \
+           fi ; \
+       done
 uninstall-local:
        rm -rf $(DESTDIR)$(docdir)/html
 endif
-- 
1.7.9.5

_______________________________________________
Libva mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to