--with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
--with-pamlibdir=$$dc_install_base/$(pamlibdir) \
--with-rootprefix=$$dc_install_base \
- --disable-split-usr \
+ --disable-split-usr
+
+if ENABLE_GTK_DOC
+DISTCHECK_CONFIGURE_FLAGS += \
--enable-gtk-doc
+endif
upload: all distcheck
cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
echo "Activated pre-commit hook."
fi
-GTKDOCIZE=`which gtkdocize`
+GTKDOCIZE=$(which gtkdocize 2>/dev/null)
if test -z $GTKDOCIZE; then
- echo "You don't have gtk-doc installed, and thus"
- echo "won't be able to generate the documentation."
- NOGTKDOC=1
+ echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
echo 'EXTRA_DIST =' > gtk-doc.make
+else
+ gtkdocize
+ gtkdocargs=--enable-gtk-doc
fi
-if test -z "$NOGTKDOC"; then
- gtkdocize || exit $?
-fi
intltoolize --force --automake
autoreconf --force --install --symlink
--localstatedir=/var \
--libdir=$(libdir /usr/lib) \
--libexecdir=/usr/lib \
---enable-gtk-doc"
+$gtkdocargs"
if [ ! -L /bin ]; then
args="$args \
AC_PATH_PROG([M4], [m4])
-# gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
-# it on it's own line.
+# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
m4_ifdef([GTK_DOC_CHECK], [
GTK_DOC_CHECK([1.18])
-],[
-AM_CONDITIONAL([ENABLE_GTK_DOC],[false])
-])
-
+],[ AM_CONDITIONAL([ENABLE_GTK_DOC],[false]) ])
GOBJECT_INTROSPECTION_CHECK([1.31.1])