#114 'make install' fails when Doxygen is disabled/not present

open
nobody
None
5
2012-12-12
2009-09-11
ssssam
No

Configure flac with --disable-doxygen-docs. 'make' works fine, but 'make install' fails at the following:

...
make[3]: Leaving directory `/home/sam/flac/doc/html/images'
make[3]: Entering directory `/home/sam/flac/doc/html'
make[4]: Entering directory `/home/sam/flac/doc/html'
make[4]: Nothing to be done for `install-exec-am'.
/bin/bash ../../mkinstalldirs /tmp/share/doc/flac-1.2.1/html/api
mkdir -p -- /tmp/share/doc/flac-1.2.1/html/api
(cd ./api && /usr/bin/install -c -m 644 * /tmp/share/doc/flac-1.2.1/html/api)
/usr/bin/install: cannot stat `*': No such file or directory
make[4]: *** [install-data-local] Error 1
make[4]: Leaving directory `/home/sam/flac/doc/html'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/sam/flac/doc/html'
...

Presumably 'install *' fails because there aren't any api docs. Shouldn't be too hard to patch, I'll try and get one up in a few minutes.

Discussion

  • ssssam
    ssssam
    2009-09-11

    Patch: only call 'install' if api/ directory is not empty.