]> xenbits.xensource.com Git - libvirt.git/commit
docs: fix generation of docs from VPATH build
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Jan 2016 12:22:19 +0000 (12:22 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Jan 2016 12:22:19 +0000 (12:22 +0000)
commit7659bd9221b9dd1cdf731d90b442c306dbda5cbd
tree167d3022c46042cdb42f9b3d2e91e9b7268bee42
parentce9085eba14f81158a798bd3f52bbf8baf91e495
docs: fix generation of docs from VPATH build

When generating docs in a VPATH build we get a failure to
create a file due to the 'internals' subdir not existing:

  Generating internals/locking.html.tmp
  /bin/sh: line 3: internals/locking.html.tmp: No such file or directory
  rm: cannot remove ‘internals/locking.html.tmp’: No such file or directory
  Makefile:2229: recipe for target 'internals/locking.html.tmp' failed
  make: *** [internals/locking.html.tmp] Error 1

For some reason, make has decided to run the target

  %.html.tmp: %.html.in site.xsl page.xsl sitemap.html.in $(acl_generated)

instead of the target

  internals/%.html.tmp: internals/%.html.in subsite.xsl page.xsl sitemap.html.in

Removing '$(acl_generated)' from the first target, inexplicably
causes make to now run the correct target for the internals/
files.

Rather than figure this out, lets just combine the two targets
into one.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
docs/Makefile.am