Fix gtk-doc build
Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
commit
fb71ce410e
|
@ -28,5 +28,5 @@ m4/ltsugar.m4
|
||||||
m4/ltversion.m4
|
m4/ltversion.m4
|
||||||
m4/lt~obsolete.m4
|
m4/lt~obsolete.m4
|
||||||
|
|
||||||
docs/gtk-doc.make
|
|
||||||
m4/gtk-doc.m4
|
m4/gtk-doc.m4
|
||||||
|
docs/gtk-doc.make
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
type -p gtkdocize > /dev/null && gtkdocize --docdir docs
|
if type -p gtkdocize > /dev/null; then
|
||||||
|
gtkdocize --docdir docs
|
||||||
|
else
|
||||||
|
echo 'EXTRA_DIST =' > docs/gtk-doc.make
|
||||||
|
echo 'AC_DEFUN([GTK_DOC_CHECK], [AM_CONDITIONAL([ENABLE_GTK_DOC], [FALSE])])' > m4/gtk-doc.m4
|
||||||
|
fi
|
||||||
|
|
||||||
autoreconf -f -i
|
autoreconf -f -i
|
||||||
|
|
|
@ -92,13 +92,11 @@ GTKDOC_CFLAGS = \
|
||||||
|
|
||||||
GTKDOC_LIBS = \
|
GTKDOC_LIBS = \
|
||||||
$(GLIB_LIBS) \
|
$(GLIB_LIBS) \
|
||||||
$(top_builddir)/libgudev-1.0.la
|
$(top_builddir)/src/gudev/libgudev-1.0.la \
|
||||||
|
$(top_builddir)/src/udev/libudev-core.la
|
||||||
if ENABLE_GTK_DOC
|
|
||||||
EXTRA_DIST=
|
|
||||||
|
|
||||||
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
||||||
-include $(top_srcdir)/docs/gtk-doc.make
|
include $(top_srcdir)/docs/gtk-doc.make
|
||||||
|
|
||||||
# Other files to distribute
|
# Other files to distribute
|
||||||
# e.g. EXTRA_DIST += version.xml.in
|
# e.g. EXTRA_DIST += version.xml.in
|
||||||
|
@ -110,6 +108,7 @@ EXTRA_DIST += version.xml.in
|
||||||
#DISTCLEANFILES +=
|
#DISTCLEANFILES +=
|
||||||
|
|
||||||
# Comment this out if you want your docs-status tested during 'make check'
|
# Comment this out if you want your docs-status tested during 'make check'
|
||||||
|
if ENABLE_GTK_DOC
|
||||||
TESTS_ENVIRONMENT = cd $(top_srcdir)
|
TESTS_ENVIRONMENT = cd $(top_srcdir)
|
||||||
TESTS = $(GTKDOC_CHECK)
|
TESTS = $(GTKDOC_CHECK)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -88,11 +88,8 @@ override LDFLAGS=
|
||||||
GTKDOC_CFLAGS=
|
GTKDOC_CFLAGS=
|
||||||
GTKDOC_LIBS=
|
GTKDOC_LIBS=
|
||||||
|
|
||||||
if ENABLE_GTK_DOC
|
|
||||||
EXTRA_DIST=
|
|
||||||
|
|
||||||
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
||||||
-include $(top_srcdir)/docs/gtk-doc.make
|
include $(top_srcdir)/docs/gtk-doc.make
|
||||||
|
|
||||||
# Other files to distribute
|
# Other files to distribute
|
||||||
# e.g. EXTRA_DIST += version.xml.in
|
# e.g. EXTRA_DIST += version.xml.in
|
||||||
|
@ -104,6 +101,7 @@ EXTRA_DIST += version.xml.in
|
||||||
#DISTCLEANFILES +=
|
#DISTCLEANFILES +=
|
||||||
|
|
||||||
# Comment this out if you want your docs-status tested during 'make check'
|
# Comment this out if you want your docs-status tested during 'make check'
|
||||||
|
if ENABLE_GTK_DOC
|
||||||
TESTS_ENVIRONMENT = cd $(top_srcdir)
|
TESTS_ENVIRONMENT = cd $(top_srcdir)
|
||||||
TESTS = $(GTKDOC_CHECK)
|
TESTS = $(GTKDOC_CHECK)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue