diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-02-06 12:35:57 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-04-25 09:54:20 +0800 |
commit | 254f05c124094b544aaa2b92ed3bb17acf56e771 (patch) | |
tree | cce9b0a8ac19f276f6a7506c659a2cba5613cbac | |
parent | 0299dba334c437bd85695b5f4f241de2c985fea6 (diff) | |
download | libva-254f05c124094b544aaa2b92ed3bb17acf56e771.tar.gz |
Fix the broken install
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@intel.com>
(cherry picked from commit ee948e105b97a03b60168b4e5aed3c64a14c37e6)
-rw-r--r-- | doc/Makefile.am | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 36c3905..052b863 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -40,7 +40,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 |