[Libva] [PATCH 2/2] Fix the broken install
Xiang, Haihao
haihao.xiang at intel.com
Tue Feb 5 20:58:57 PST 2013
From: "Xiang, Haihao" <haihao.xiang at intel.com>
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 <haihao.xiang at intel.com>
---
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
More information about the Libva
mailing list