From: Olaf Hering Subject: Re: [PATCH 4/4] docs/html/: Arrange for automatic build of hypercall docs Date: Thu, 1 Dec 2011 15:12:24 +0100 Message-ID: <20111201141224.GA12300@aepfle.de> References: <1322578893-9998-1-git-send-email-ian.jackson@eu.citrix.com> <1322578893-9998-5-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1322578893-9998-5-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Nov 29, Ian Jackson wrote: > - Use index.html rather than a stamp file. > - Automatically generate dependencies. > - Wire into the docs build system > > +-include html/hypercall/.deps This creates a new .deps file which is also installed during make install. Unfortunately the rpm post-build checks reject such a file and the package build fails. My quick hack to remove it during make install looks like this: --- a/docs/Makefile +++ b/docs/Makefile @@ -102,7 +102,7 @@ install: all $(INSTALL_DIR) $(DESTDIR)$(MANDIR) cp -dR man1 $(DESTDIR)$(MANDIR) cp -dR man5 $(DESTDIR)$(MANDIR) - [ ! -d html ] || cp -dR html $(DESTDIR)$(DOCDIR) + if [ -d html ] ; then cp -dR html $(DESTDIR)$(DOCDIR) ; find $(DESTDIR)$(DOCDIR) -name .deps -print0 | xargs -0 --no-run-if-empty rm -f ; fi pdf/%.pdf: ps/%.ps $(INSTALL_DIR) $(@D) There is probably a better way to get rid of the file. Olaf