summaryrefslogtreecommitdiff
path: root/gtkdoc-mkhtml.in
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-05-21 11:52:04 +0300
committerStefan Kost <ensonic@users.sf.net>2010-05-21 11:57:19 +0300
commit89922f1fab12b83fadfc6de37b151e07c35f506c (patch)
tree03d557138e5f989aeb039dca169fa1d8fdd3f0ba /gtkdoc-mkhtml.in
parentade641d3512047fac47b9b95b37a90d36d8ff1ad (diff)
downloadgtk-doc-89922f1fab12b83fadfc6de37b151e07c35f506c.tar.gz
distcheck: pass and use ABS_TOP_SRCDIR to be able to find data files.
Relying on the dirname of gtkdoc-mkhtml is not working as it is generated and thus in builddir, datafiles are in srcdir.
Diffstat (limited to 'gtkdoc-mkhtml.in')
-rw-r--r--gtkdoc-mkhtml.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/gtkdoc-mkhtml.in b/gtkdoc-mkhtml.in
index 9b09a88..b6ec796 100644
--- a/gtkdoc-mkhtml.in
+++ b/gtkdoc-mkhtml.in
@@ -33,10 +33,14 @@ shift
if test $uninstalled = yes; then
# this does not work from buiddir!=srcdir
- # we could try this
- # MAKE_SCRDIR=$(abs_srcdir) MAKE_BUILDDIR=$(abs_builddir) gtkdoc-mkhtml ...
gtkdocdir=`dirname $0`
- #echo "uninstalled, gtkdocdir=$gtkdocdir"
+ if test ! -e $gtkdocdir/gtk-doc.xsl; then
+ # try to src dir (set from makefiles) too
+ if test -e $ABS_TOP_SRCDIR/gtk-doc.xsl; then
+ gtkdocdir=$ABS_TOP_SRCDIR
+ fi
+ fi
+ #echo "uninstalled, gtkdocdir=$gtkdocdir, cwd=$PWD"
else
# the first two are needed to resolve datadir
prefix=@prefix@
@@ -78,8 +82,8 @@ else
fi
# copy navigation images and stylesheets to html directory ...
-cp -f $gtkdocdir/*.png .
-cp -f $gtkdocdir/*.css .
+cp -f $gtkdocdir/*.png ./
+cp -f $gtkdocdir/*.css ./
echo "timestamp" > ../html.stamp