Generate gtk-doc.make from gtkdocize.

This commit is contained in:
gb 2010-03-19 17:11:20 +00:00
parent 5c0ee54d03
commit 69f2b146f7
2 changed files with 18 additions and 1 deletions

View file

@ -6,7 +6,7 @@ SUBDIRS = debian gst-libs pkgconfig sys tests docs
MAINTAINERCLEANFILES = \
aclocal.m4 compile config.guess config.sub \
configure depcomp install-sh ltmain.sh \
Makefile.in missing config.h.in
Makefile.in missing config.h.in gtk-doc.make
deb: dist
-mkdir -p debian-build

View file

@ -1,3 +1,20 @@
#! /bin/sh
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
echo "*** No gtk-doc support ***"
echo "EXTRA_DIST =" > gtk-doc.make
else
gtkdocize || exit $?
# we need to patch gtk-doc.make to support pretty output with
# libtool 1.x. Should be fixed in the next version of gtk-doc.
# To be more resilient with the various versions of gtk-doc one
# can find, just sed gkt-doc.make rather than patch it.
sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
&& mv gtk-doc.temp gtk-doc.make
sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
&& mv gtk-doc.temp gtk-doc.make
fi
autoreconf -v --install
./configure "$@"