Commit 673b0a65 authored by Iñigo Martínez's avatar Iñigo Martínez

build: Remove autotools

To avoid the burden of maintaining multiple build systems, this
patch removes autotools support.

https://bugzilla.gnome.org/show_bug.cgi?id=787013
parent 7e5d0b38
ACLOCAL_AMFLAGS = -I m4 -I subprojects/libgd ${ACLOCAL_FLAGS}
SUBDIRS = help subprojects/libgd src data po
if BUILD_DOCUMENTATION
SUBDIRS += man
endif
if ENABLE_GETTING_STARTED
SUBDIRS += getting-started
dist-hook-getting-started:
else
dist-hook-getting-started:
@echo "*** --enable-getting-started must be specified in order to make dist"
@false
endif
DISTCHECK_CONFIGURE_FLAGS = --enable-getting-started
EXTRA_DIST = \
autogen.sh \
COPYING \
NEWS \
meson.build \
meson_options.txt \
meson_post_install.py \
po/meson.build
stale-files-clean-local:
-$(RM) $(abs_top_builddir)/*.la $(abs_top_builddir)/*.gir $(abs_top_builddir)/*.typelib
MAINTAINERCLEANFILES = \
$(srcdir)/AUTHORS \
$(srcdir)/INSTALL \
$(srcdir)/ar-lib \
$(srcdir)/aclocal.m4 \
$(srcdir)/autoscan.log \
$(srcdir)/compile \
$(srcdir)/config.guess \
$(srcdir)/config.h.in \
$(srcdir)/config.sub \
$(srcdir)/configure.scan \
$(srcdir)/depcomp \
$(srcdir)/install-sh \
$(srcdir)/ltmain.sh \
$(srcdir)/missing \
$(srcdir)/mkinstalldirs \
$(srcdir)/omf.make \
$(srcdir)/xmldocs.make \
$(srcdir)/gtk-doc.make \
$(NULL)
GITIGNOREFILES = \
m4 \
config \
$(NULL)
dist-hook: dist-hook-getting-started
-include $(top_srcdir)/git.mk
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
test -n "$srcdir" || srcdir=$(dirname "$0")
test -n "$srcdir" || srcdir=.
olddir=$(pwd)
cd $srcdir
(test -f configure.ac) || {
echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***"
exit 1
}
# shellcheck disable=SC2016
PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac)
if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
echo "*** WARNING: I am going to run 'configure' with no arguments." >&2
echo "*** If you wish to pass any to it, please specify them on the" >&2
echo "*** '$0' command line." >&2
echo "" >&2
fi
git submodule update --init --recursive || exit 1
autoreconf --verbose --force --install || exit 1
cd "$olddir"
if [ "$NOCONFIGURE" = "" ]; then
$srcdir/configure "$@" || exit 1
if [ "$1" = "--help" ]; then
exit 0
else
echo "Now type 'make' to compile $PKG_NAME" || exit 1
fi
else
echo "Skipping configure process."
fi
dnl -*- mode: Autoconf -*-
AC_PREREQ(2.63)
AC_INIT([gnome-documents],[3.29.1],[],[gnome-documents])
AC_CONFIG_HEADERS([config/config.h])
AC_CONFIG_SRCDIR([src/main.js])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CANONICAL_TARGET
# require automake 1.11
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip tar-ustar foreign])
AM_MAINTAINER_MODE([enable])
AX_IS_RELEASE([git-directory])
AX_CHECK_ENABLE_DEBUG([yes],,, [$ax_is_release])
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
AX_REQUIRE_DEFINED([AM_GNU_GETTEXT_VERSION])
AM_GNU_GETTEXT_VERSION([0.19.8])
AX_REQUIRE_DEFINED([AM_GNU_GETTEXT])
AM_GNU_GETTEXT([external])
PKG_PROG_PKG_CONFIG([0.22])
AX_REQUIRE_DEFINED([YELP_HELP_INIT])
YELP_HELP_INIT
GOBJECT_INTROSPECTION_REQUIRE([0.9.6])
## don't rerun to this point if we abort
AC_CACHE_SAVE
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_ISC_POSIX
AC_HEADER_STDC
# no stupid static libraries
AM_DISABLE_STATIC
# enable libtool
AC_PROG_LIBTOOL
# avoid libtool for LTCOMPILE, use it only to link
## don't rerun to this point if we abort
AC_CACHE_SAVE
AX_REQUIRE_DEFINED([GLIB_GSETTINGS])
GLIB_GSETTINGS
GETTING_STARTED_INIT
AC_CHECK_LIBM
AC_SUBST(LIBM)
EVINCE_MIN_VERSION=3.13.3
WEBKITGTK_MIN_VERSION=2.6.0
GLIB_MIN_VERSION=2.39.3
GJS_MIN_VERSION=1.48.0
GTK_MIN_VERSION=3.22.15
GOBJECT_INTROSPECTION_MIN_VERSION=1.31.6
TRACKER_MIN_VERSION=0.17.3
SOUP_MIN_VERSION=2.41.3
AC_ARG_ENABLE(documentation,
AS_HELP_STRING([--enable-documentation],
[build documentation]),,
enable_documentation=yes)
if test x$enable_documentation = xyes; then
AC_PATH_PROG([XSLTPROC], [xsltproc])
if test x$XSLTPROC = x; then
AC_MSG_ERROR([xsltproc is required to build documentation])
fi
fi
AM_CONDITIONAL(BUILD_DOCUMENTATION, test x$enable_documentation = xyes)
PKG_CHECK_MODULES(DOCUMENTS,
evince-document-3.0 >= $EVINCE_MIN_VERSION
evince-view-3.0 >= $EVINCE_MIN_VERSION
webkit2gtk-4.0 >= $WEBKITGTK_MIN_VERSION
gjs-1.0 >= $GJS_MIN_VERSION
glib-2.0 >= $GLIB_MIN_VERSION
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
gtk+-3.0 >= $GTK_MIN_VERSION
libsoup-2.4 >= $SOUP_MIN_VERSION
gnome-desktop-3.0
tracker-control-2.0 >= $TRACKER_MIN_VERSION
tracker-sparql-2.0 >= $TRACKER_MIN_VERSION)
# Although GTK+ 3.10 includes hi-dpi functionality, it does not require a cairo with
# cairo_surface_set_device_scale(), which we also need if we're to support hi-dpi,
# so we need check for that explicity.
documents_save_LIBS="$LIBS"
LIBS="$LIBS $DOCUMENTS_LIBS"
AC_CHECK_FUNCS(cairo_surface_set_device_scale)
LIBS="$documents_save_LIBS"
LIBGD_INIT([
gtk-hacks
main-view
notification
tagged-entry
gir
][subprojects/libgd])
AX_PROG_GJS
AX_CHECK_GIRS_GJS([cairo], [1.0])
AX_CHECK_GIRS_GJS([EvinceDocument], [3.0])
AX_CHECK_GIRS_GJS([EvinceView], [3.0])
AX_CHECK_GIRS_GJS([GData], [0.0])
AX_CHECK_GIRS_GJS([Gdk], [3.0])
AX_CHECK_GIRS_GJS([GdkPixbuf], [2.0])
AX_CHECK_GIR_SYMBOLS_GJS([Gio], [2.0], [ActionMap.add_action])
AX_CHECK_GIRS_GJS([GLib], [2.0])
AX_CHECK_GIRS_GJS([GnomeDesktop], [3.0])
AX_CHECK_GIRS_GJS([Goa], [1.0])
AX_CHECK_GIRS_GJS([GObject], [2.0])
AX_CHECK_GIR_SYMBOLS_GJS([Gtk], [3.0], [ShortcutsWindow ShortcutsSection
ShortcutsGroup ShortcutsShortcut])
AX_CHECK_GIRS_GJS([Pango], [1.0])
AX_CHECK_GIRS_GJS([Tracker], [2.0])
AX_CHECK_GIRS_GJS([TrackerControl], [2.0])
AX_CHECK_GIRS_GJS([WebKit2], [4.0])
AX_CHECK_GIRS_GJS([Zpj], [0.0])
AX_CHECK_GIRS_GJS([Gepub], [0.6])
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)
AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
AC_CONFIG_FILES([
Makefile
help/Makefile
subprojects/libgd/Makefile
src/Makefile
data/Makefile
data/icons/Makefile
getting-started/Makefile
man/Makefile
po/Makefile.in
])
AC_OUTPUT
dnl ==========================================================================
echo "
gnome-documents $VERSION
==================
prefix: ${prefix}
compiler: ${CC}
"
SUBDIRS = icons
appdir = $(pkgdatadir)
app_resource_files = \
$(shell $(GLIB_COMPILE_RESOURCES) \
--sourcedir=$(srcdir) \
--generate-dependencies \
$(srcdir)/org.gnome.Documents.data.gresource.xml \
)
org.gnome.Documents.data.gresource: org.gnome.Documents.data.gresource.xml $(app_resource_files)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) \
--target=$@ \
--sourcedir=$(srcdir) $<
org.gnome.Books.data.gresource: org.gnome.Books.data.gresource.xml $(app_resource_files)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) \
--target=$@ \
--sourcedir=$(srcdir) $<
resourcedir = $(pkgdatadir)
resource_DATA = org.gnome.Documents.data.gresource org.gnome.Books.data.gresource
metainfodir = $(datadir)/metainfo
metainfo_DATA = $(metainfo_in_files:.xml.in=.xml)
metainfo_in_files = \
org.gnome.Documents.appdata.xml.in \
org.gnome.Books.appdata.xml.in
org.gnome.Books.appdata.xml: org.gnome.Books.appdata.xml.in
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
org.gnome.Documents.appdata.xml: org.gnome.Documents.appdata.xml.in
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
desktopdir = $(datadir)/applications
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
desktop_in_files = org.gnome.Documents.desktop.in org.gnome.Books.desktop.in
org.gnome.Books.desktop: org.gnome.Books.desktop.in
$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
org.gnome.Documents.desktop: org.gnome.Documents.desktop.in
$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
searchproviderdir = $(datadir)/gnome-shell/search-providers
searchprovider_DATA = org.gnome.Documents.search-provider.ini
check-local: org.gnome.Documents.desktop org.gnome.Books.desktop
$(DESKTOP_FILE_VALIDATE) org.gnome.Documents.desktop
$(DESKTOP_FILE_VALIDATE) org.gnome.Books.desktop
gsettings_ENUM_NAMESPACE = org.gnome.Documents
gsettings_ENUM_FILES = \
$(top_srcdir)/subprojects/libgd/libgd/gd-main-view.h \
$(top_srcdir)/subprojects/libgd/libgd/gd-main-view-generic.h
gsettings_SCHEMAS = org.gnome.documents.gschema.xml org.gnome.books.gschema.xml
.PRECIOUS: $(gsettings_SCHEMAS)
@GSETTINGS_RULES@
EXTRA_DIST= \
$(metainfo_in_files) \
$(app_resource_files) \
$(desktop_in_files) \
$(searchprovider_DATA) \
$(gsettings_SCHEMAS) \
org.gnome.Documents.data.gresource.xml \
org.gnome.Books.data.gresource.xml \
meson.build
CLEANFILES = \
org.gnome.Documents.data.gresource \
org.gnome.Books.data.gresource \
$(metainfo_DATA) \
$(desktop_DATA)
-include $(top_srcdir)/git.mk
NULL =
public_icons_themes = \
hicolor \
$(NULL)
public_scalable_iconsdir = $(datadir)/icons/hicolor/scalable/apps
public_scalable_icons_DATA = \
hicolor/scalable/apps/org.gnome.Books-symbolic.svg \
hicolor/scalable/apps/org.gnome.Documents-symbolic.svg
public_16x16_iconsdir = $(datadir)/icons/hicolor/16x16/apps
public_16x16_icons_DATA = \
hicolor/16x16/apps/org.gnome.Books.png \
hicolor/16x16/apps/org.gnome.Documents.png
public_22x22_iconsdir = $(datadir)/icons/hicolor/22x22/apps
public_22x22_icons_DATA = \
hicolor/22x22/apps/org.gnome.Books.png \
hicolor/22x22/apps/org.gnome.Documents.png
public_24x24_iconsdir = $(datadir)/icons/hicolor/24x24/apps
public_24x24_icons_DATA = \
hicolor/24x24/apps/org.gnome.Books.png \
hicolor/24x24/apps/org.gnome.Documents.png
public_32x32_iconsdir = $(datadir)/icons/hicolor/32x32/apps
public_32x32_icons_DATA = \
hicolor/32x32/apps/org.gnome.Books.png \
hicolor/32x32/apps/org.gnome.Documents.png
public_48x48_iconsdir = $(datadir)/icons/hicolor/48x48/apps
public_48x48_icons_DATA = \
hicolor/48x48/apps/org.gnome.Books.png \
hicolor/48x48/apps/org.gnome.Documents.png
public_256x256_iconsdir = $(datadir)/icons/hicolor/256x256/apps
public_256x256_icons_DATA = \
hicolor/256x256/apps/org.gnome.Books.png \
hicolor/256x256/apps/org.gnome.Documents.png
public_512x512_iconsdir = $(datadir)/icons/hicolor/512x512/apps
public_512x512_icons_DATA = \
hicolor/512x512/apps/org.gnome.Books.png \
hicolor/512x512/apps/org.gnome.Documents.png
noinst_DATA = \
hicolor_org.gnome.Books.blend \
hicolor_org.gnome.Books.svg \
hicolor_org.gnome.Documents.svg \
$(NULL)
EXTRA_DIST = \
$(public_scalable_icons_DATA) \
$(public_16x16_icons_DATA) \
$(public_22x22_icons_DATA) \
$(public_24x24_icons_DATA) \
$(public_32x32_icons_DATA) \
$(public_48x48_icons_DATA) \
$(public_256x256_icons_DATA) \
$(public_512x512_icons_DATA) \
$(noinst_DATA) \
meson.build \
$(NULL)
###############################################################################
gtk_update_icon_cache = gtk-update-icon-cache -f -t
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
for theme in $(public_icons_themes); do \
$(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
done; \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
for theme in $(public_icons_themes); do \
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
done; \
fi
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
-include $(top_srcdir)/git.mk
@GETTING_STARTED_RULES@
HELP_LINGUAS = $(NULL)
HELP_FILES = \
landing.svg \
goa.svg \
bookmarking.svg \
scrubbing.svg \
editing.svg \
learn-more.svg \
$(NULL)
EXTRA_DIST = meson.build
-include $(top_srcdir)/git.mk
# git.mk
#
# Copyright 2009, Red Hat, Inc.
# Copyright 2010,2011,2012,2013 Behdad Esfahbod
# Written by Behdad Esfahbod
#
# Copying and distribution of this file, with or without modification,
# is permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
#
# The latest version of this file can be downloaded from:
# https://raw.github.com/behdad/git.mk/master/git.mk
# Bugs, etc, should be reported upstream at:
# https://github.com/behdad/git.mk
#
# To use in your project, import this file in your git repo's toplevel,
# then do "make -f git.mk". This modifies all Makefile.am files in
# your project to -include git.mk. Remember to add that line to new
# Makefile.am files you create in your project, or just rerun the
# "make -f git.mk".
#
# This enables automatic .gitignore generation. If you need to ignore
# more files, add them to the GITIGNOREFILES variable in your Makefile.am.
# But think twice before doing that. If a file has to be in .gitignore,
# chances are very high that it's a generated file and should be in one
# of MOSTLYCLEANFILES, CLEANFILES, DISTCLEANFILES, or MAINTAINERCLEANFILES.
#
# The only case that you need to manually add a file to GITIGNOREFILES is
# when remove files in one of mostlyclean-local, clean-local, distclean-local,
# or maintainer-clean-local make targets.
#
# Note that for files like editor backup, etc, there are better places to
# ignore them. See "man gitignore".
#
# If "make maintainer-clean" removes the files but they are not recognized
# by this script (that is, if "git status" shows untracked files still), send
# me the output of "git status" as well as your Makefile.am and Makefile for
# the directories involved and I'll diagnose.
#
# For a list of toplevel files that should be in MAINTAINERCLEANFILES, see
# Makefile.am.sample in the git.mk git repo.
#
# Don't EXTRA_DIST this file. It is supposed to only live in git clones,
# not tarballs. It serves no useful purpose in tarballs and clutters the
# build dir.
#
# This file knows how to handle autoconf, automake, libtool, gtk-doc,
# gnome-doc-utils, yelp.m4, mallard, intltool, gsettings, dejagnu.
#
# This makefile provides the following targets:
#
# - all: "make all" will build all gitignore files.
# - gitignore: makes all gitignore files in the current dir and subdirs.
# - .gitignore: make gitignore file for the current dir.
# - gitignore-recurse: makes all gitignore files in the subdirs.
#
# KNOWN ISSUES:
#
# - Recursive configure doesn't work as $(top_srcdir)/git.mk inside the
# submodule doesn't find us. If you have configure.{in,ac} files in
# subdirs, add a proxy git.mk file in those dirs that simply does:
# "include $(top_srcdir)/../git.mk". Add more ..'s to your taste.
# And add those files to git. See vte/gnome-pty-helper/git.mk for
# example.
#
###############################################################################
# Variables user modules may want to add to toplevel MAINTAINERCLEANFILES:
###############################################################################
#
# Most autotools-using modules should be fine including this variable in their
# toplevel MAINTAINERCLEANFILES:
GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL = \
$(srcdir)/aclocal.m4 \
$(srcdir)/ar-lib \
$(srcdir)/autoscan.log \
$(srcdir)/compile \
$(srcdir)/config.guess \
$(srcdir)/config.h.in \
$(srcdir)/config.sub \
$(srcdir)/configure.scan \
$(srcdir)/depcomp \
$(srcdir)/install-sh \
$(srcdir)/ltmain.sh \
$(srcdir)/missing \
$(srcdir)/mkinstalldirs
#
# All modules should also be fine including the following variable, which
# removes automake-generated Makefile.in files:
GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN = \
`$(AUTOCONF) --trace 'AC_CONFIG_FILES:$$1' $(srcdir)/configure.ac | \
while read f; do \
case $$f in Makefile|*/Makefile) \
test -f "$(srcdir)/$$f.am" && echo "$(srcdir)/$$f.in";; esac; \
done`
#
# Modules that use libtool /and/ use AC_CONFIG_MACRO_DIR([m4]) may also
# include this:
GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL = \
$(srcdir)/m4/libtool.m4 \
$(srcdir)/m4/ltoptions.m4 \
$(srcdir)/m4/ltsugar.m4 \
$(srcdir)/m4/ltversion.m4 \
$(srcdir)/m4/lt~obsolete.m4
###############################################################################
# Default rule is to install ourselves in all Makefile.am files:
###############################################################################
git-all: git-mk-install
git-mk-install:
@echo "Installing git makefile"
@any_failed=; \
find "`test -z "$(top_srcdir)" && echo . || echo "$(top_srcdir)"`" -name Makefile.am | while read x; do \
if grep 'include .*/git.mk' $$x >/dev/null; then \
echo "$$x already includes git.mk"; \
else \
failed=; \
echo "Updating $$x"; \
{ cat $$x; \
echo ''; \
echo '-include $$(top_srcdir)/git.mk'; \
} > $$x.tmp || failed=1; \
if test x$$failed = x; then \
mv $$x.tmp $$x || failed=1; \
fi; \
if test x$$failed = x; then : else \
echo "Failed updating $$x"; >&2 \
any_failed=1; \
fi; \
fi; done; test -z "$$any_failed"
.PHONY: git-all git-mk-install
###############################################################################
# Actual .gitignore generation:
###############################################################################
$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
@echo "git.mk: Generating $@"
@{ \
if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \
for x in \
$(DOC_MODULE)-decl-list.txt \
$(DOC_MODULE)-decl.txt \
tmpl/$(DOC_MODULE)-unused.sgml \
"tmpl/*.bak" \
xml html \
; do echo "/$$x"; done; \
fi; \
if test "x$(DOC_MODULE)$(DOC_ID)" = x -o "x$(DOC_LINGUAS)" = x; then :; else \
for lc in $(DOC_LINGUAS); do \
for x in \
$(if $(DOC_MODULE),$(DOC_MODULE).xml) \
$(DOC_PAGES) \
$(DOC_INCLUDES) \
; do echo "/$$lc/$$x"; done; \
done; \
for x in \
$(_DOC_OMF_ALL) \
$(_DOC_DSK_ALL) \
$(_DOC_HTML_ALL) \
$(_DOC_MOFILES) \
$(DOC_H_FILE) \
"*/.xml2po.mo" \
"*/*.omf.out" \
; do echo /$$x; done; \
fi; \
if test "x$(HELP_ID)" = x -o "x$(HELP_LINGUAS)" = x; then :; else \
for lc in $(HELP_LINGUAS); do \
for x in \
$(HELP_FILES) \
"$$lc.stamp" \
"$$lc.mo" \
; do echo "/$$lc/$$x"; done; \
done; \
fi; \
if test "x$(gsettings_SCHEMAS)" = x; then :; else \
for x in \
$(gsettings_SCHEMAS:.xml=.valid) \
$(gsettings__enum_file) \
; do echo "/$$x"; done; \
fi; \
if test -f $(srcdir)/po/Makefile.in.in; then \
for x in \
po/Makefile.in.in \
po/Makefile.in \
po/Makefile \
po/POTFILES \
po/stamp-it \
po/.intltool-merge-cache \
"po/*.gmo" \
"po/*.mo" \
po/$(GETTEXT_PACKAGE).pot \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
; do echo "/$$x"; done; \
fi; \
if test -f $(srcdir)/configure; then \
for x in \
autom4te.cache \
configure \
config.h \
stamp-h1 \
libtool \
config.lt \
; do echo "/$$x"; done; \
fi; \
if test "x$(DEJATOOL)" = x; then :; else \
for x in \
$(DEJATOOL) \
; do echo "/$$x.sum"; echo "/$$x.log"; done; \
echo /site.exp; \
fi; \
if test "x$(am__dirstamp)" = x; then :; else \
echo "$(am__dirstamp)"; \
fi; \
if test "x$(LTCOMPILE)" = x; then :; else \
for x in \
"*.lo" \
".libs" "_libs" \
; do echo "$$x"; done; \
fi; \
for x in \
.gitignore \
$(GITIGNOREFILES) \
$(CLEANFILES) \
$(PROGRAMS) $(check_PROGRAMS) $(EXTRA_PROGRAMS) \
$(LIBRARIES) $(check_LIBRARIES) $(EXTRA_LIBRARIES) \
$(LTLIBRARIES) $(check_LTLIBRARIES) $(EXTRA_LTLIBRARIES) \
so_locations \
$(MOSTLYCLEANFILES) \
"*.$(OBJEXT)" \
$(DISTCLEANFILES) \
$(am__CONFIG_DISTCLEAN_FILES) \
$(CONFIG_CLEAN_FILES) \
TAGS ID GTAGS GRTAGS GSYMS GPATH tags \
"*.tab.c" \
$(MAINTAINERCLEANFILES) \
$(BUILT_SOURCES) \
$(DEPDIR) \
Makefile \
Makefile.in \
"*.orig" \
"*.rej" \
"*.bak" \
"*~" \
".*.sw[nop]" \
".dirstamp" \
; do echo "/$$x"; done; \
} | \
sed "s@^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \
sed 's@/[.]/@/@g' | \
LC_ALL=C sort | uniq > $@.tmp && \
mv $@.tmp $@;
all: $(srcdir)/.gitignore gitignore-recurse-maybe
gitignore: $(srcdir)/.gitignore gitignore-recurse
gitignore-recurse-maybe:
@for subdir in $(DIST_SUBDIRS); do \
case " $(SUBDIRS) " in \
*" $$subdir "*) :;; \
*) test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse-maybe || echo "Skipping $$subdir");; \
esac; \
done
gitignore-recurse:
@for subdir in $(DIST_SUBDIRS); do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse || echo "Skipping $$subdir"); \
done
maintainer-clean: gitignore-clean
gitignore-clean:
-rm -f $(srcdir)/.gitignore
.PHONY: gitignore-clean gitignore gitignore-recurse gitignore-recurse-maybe
@YELP_HELP_RULES@
HELP_ID = gnome-documents
HELP_FILES = \
legal.xml \
collections.page \
filter.page \
formats.page \
index.page \
info.page \
print.page \
prob-no-show.page \
prob-previews.page \
search.page \
viewgrid.page \
view.page \
view-add.page
HELP_MEDIA = \
media/go-down.png \
media/icon_gnome-documents.png
HELP_LINGUAS = as ca cs de el fi fr es gl gu hi hu id it ja kn ko lv mr nl pa pl pt_BR ru sl sr sr@latin sv te vi ta zh_CN
EXTRA_DIST = meson.build
-include $(top_srcdir)/git.mk
# Adapted from yelp-tools/tools/yelp.m4 and gtk-doc/gtk-doc.m4
AC_DEFUN([GETTING_STARTED_INIT],
[
AC_REQUIRE([AC_PROG_LN_S])
m4_pattern_allow([AM_V_at])
m4_pattern_allow([AM_V_GEN])
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
if test x"$ITSTOOL" = x; then
AC_MSG_ERROR([itstool not found])
fi
AC_ARG_ENABLE([getting-started],
AS_HELP_STRING([--enable-getting-started],
[build getting started PDFs [[default=no]]]),,
[enable_getting_started=no])
AC_MSG_CHECKING([whether to build getting-started PDFs])
AC_MSG_RESULT($enable_getting_started)
AM_CONDITIONAL([ENABLE_GETTING_STARTED], [test x$enable_getting_started = xyes])
GETTING_STARTED_RULES='
HELP_DIR = $(pkgdatadir)/getting-started
HELP_FILES ?=
HELP_LINGUAS ?=
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
_HELP_POFILES = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po)
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
_HELP_PDFFILES = $(patsubst %.svg,%.pdf,$(HELP_FILES))
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
_HELP_C_PDFS = $(patsubst %.svg,%.pdf,$(_HELP_C_FILES))
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))