GNOME Bugzilla – Bug 568702
gtkdoc-mkhtml no longer works when symlinked
Last modified: 2009-01-23 08:04:07 UTC
gtkdoc-mkhtml started to employ the following test to check whether it was run installed: # FIXME: this is a hack to detect uninstalled if test "x$0" = "x@prefix@/bin/gtkdoc-mkhtml" ; then Obviously, it breaks when you make a symlink to gtkdoc-html and run it under this name. AFAIK running uninstalled is necessary only for `make check' within gtk-doc itself, so I suggest to remove this hack and add --uninstalled option instead (patch attached). This option can be then added to MKHTML_OPTIONS where needed (patch not attached).
Created attachment 126999 [details] [review] proposed patch
For the srcdir!=builddir, we could run gtkdoc-mkhtml in case of the tests as MAKE_SCRDIR=$(abs_srcdir) MAKE_BUILDDIR=$(abs_builddir) gtkdoc-mkhtml ... 2009-01-23 Stefan Kost <ensonic@users.sf.net> patch by: David Nečas <yeti@physics.muni.cz> * gtkdoc-mkhtml.in: * gtkdoc-mkman.in: * tests/gtk-doc.make: * tests/gtk-doc.notmpl.make: Less quirky way of knowing that we run uninstalled, which is only needed for the tests anyway. In addition to the patch, make same changes in mkman, add a shift to arg parsing to not loop and change the makefiles for the tests. Fixes #568702.