Commit 6c822778 authored by Jeremy Bicha's avatar Jeremy Bicha 🎹

build: Remove autotools support

parent 74ec97cc
Refer to the "git log" for a detailed list of changes
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4 -I libgd ${ACLOCAL_FLAGS}
SUBDIRS = libgd . po docs
if !OS_OSX
SUBDIRS += help
endif
EXTRA_DIST = \
HACKING \
MAINTAINERS \
README.md \
gedit.doap
DISTCLEANFILES = \
gnome-doc-utils.make
MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
ABOUT-NLS \
INSTALL \
config.rpath \
gtk-doc.make \
py-compile \
test-driver \
m4/gnome-doc-utils.m4 \
m4/gtk-doc.m4 \
m4/intltool.m4 \
m4/codeset.m4 \
m4/fcntl-o.m4 \
m4/gettext.m4 \
m4/glibc2.m4 \
m4/glibc21.m4 \
m4/iconv.m4 \
m4/intdiv0.m4 \
m4/intl.m4 \
m4/intldir.m4 \
m4/intlmacosx.m4 \
m4/intmax.m4 \
m4/inttypes-pri.m4 \
m4/inttypes_h.m4 \
m4/lcmessage.m4 \
m4/lib-ld.m4 \
m4/lib-link.m4 \
m4/lib-prefix.m4 \
m4/lock.m4 \
m4/longlong.m4 \
m4/nls.m4 \
m4/po.m4 \
m4/printf-posix.m4 \
m4/progtest.m4 \
m4/size_max.m4 \
m4/stdint_h.m4 \
m4/threadlib.m4 \
m4/uintmax_t.m4 \
m4/visibility.m4 \
m4/wchar_t.m4 \
m4/wint_t.m4 \
m4/xsize.m4 \
po/Makevars.template \
po/Rules-quot \
po/*.sed \
po/*.header \
po/*.sin
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
GRESDEPS = $(srcdir)/$1 $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/$(dir $1) $(srcdir)/$1)
GRESGEN = $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target="$@" --sourcedir="$(dir $<)" --generate-source "$<"
noinst_LTLIBRARIES =
noinst_PROGRAMS =
bin_PROGRAMS =
pkglib_LTLIBRARIES =
gsettings_SCHEMAS =
gsettings_ENUMS =
dist_gsettingsschema_DATA =
BUILT_SOURCES =
CLEANFILES =
include data/Makefile.am
include data/icons/Makefile.am
include win32/Makefile.am
include osx/bundle/data/Makefile.am
include plugins/Makefile.am
include gedit/Makefile.am
@GSETTINGS_RULES@
CLEANFILES += $(gsettings_SCHEMAS) $(gsettings_ENUMS) $(BUILT_SOURCES)
DISTCLEANFILES += $(gsettings_SCHEMAS) $(gsettings_ENUMS) $(BUILT_SOURCES)
MAINTAINERCLEANFILES += $(gsettings_SCHEMAS:.xml=.valid)
dist-hook: dist-hook-cleanup
dist-hook-cleanup:
cd $(distdir); rm -f $(BUILT_SOURCES)
.PHONY: dist-hook-cleanup
-include $(top_srcdir)/git.mk
......@@ -74,15 +74,12 @@ Simple install procedure:
```
% tar Jxf gedit-3.31.3.tar.xz # unpack the sources
% cd gedit-3.31.3 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build gedit
% meson _build # run the `configure' script
% ninja -C _build # build gedit
[ Become root if necessary ]
% make install # install gedit
% ninja -C _build install # install gedit
```
See the file 'INSTALL' for more detailed information.
How to report bugs
==================
......
#!/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
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
echo "*** No autoreconf found, please intall it ***"
exit 1
fi
GNOMEDOC=`which yelp-build`
if test -z $GNOMEDOC; then
echo "*** The tools to build the documentation are not found,"
echo " please intall the yelp-tools package ***"
exit 1
fi
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
echo "*** No GTK-Doc found, please install it ***"
exit 1
fi
git submodule update --init --recursive
gtkdocize || exit $?
autoreconf --force --install --verbose
cd $OLDDIR
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.63.2)
m4_define(gedit_major_version, 3)
m4_define(gedit_minor_version, 31)
m4_define(gedit_micro_version, 3)
m4_define(gedit_version, gedit_major_version.gedit_minor_version.gedit_micro_version)
AC_INIT([gedit],
[gedit_version],
[https://wiki.gnome.org/Apps/Gedit/ReportingBugs],
[gedit],
[https://wiki.gnome.org/Apps/Gedit])
GEDIT_API_VERSION=3.14
AC_SUBST(GEDIT_API_VERSION)
# Dependencies
GLIB_REQUIRED=2.44
GTK_REQUIRED=3.22.0
GTKSOURCEVIEW_REQUIRED=4.0.2
LIBPEAS_REQUIRED=1.14.1
LIBXML_REQUIRED=2.5.0
GSPELL_REQUIRED=0.2.5
PYGOBJECT_REQUIRED=3.0.0
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_SRCDIR(gedit/gedit.c)
AC_CONFIG_MACRO_DIR([m4])
AC_DEFINE(GEDIT_MAJOR_VERSION, gedit_major_version, [Gedit major version])
AC_SUBST(GEDIT_MAJOR_VERSION, gedit_major_version)
AC_DEFINE(GEDIT_MINOR_VERSION, gedit_minor_version, [Gedit minor version])
AC_SUBST(GEDIT_MINOR_VERSION, gedit_minor_version)
AC_DEFINE(GEDIT_MICRO_VERSION, gedit_micro_version, [Gedit micro version])
AC_SUBST(GEDIT_MICRO_VERSION, gedit_micro_version)
AM_INIT_AUTOMAKE([1.11 tar-ustar dist-xz no-dist-gzip -Wno-portability subdir-objects foreign])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
# Checks for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_SYS_LARGEFILE
PKG_PROG_PKG_CONFIG
# needed on osx
AC_PROG_OBJC
# Initialize libtool
LT_PREREQ([2.2.6])
LT_INIT(disable-static)
GTK_DOC_CHECK([1.0],[--flavour=no-tmpl])
dnl active plugins for gedit.schemas
ACTIVE_PLUGINS="'docinfo', 'modelines', 'filebrowser', 'spell', 'time'"
AC_SUBST(ACTIVE_PLUGINS)
dnl check for win32 platform
AC_MSG_CHECKING([for Win32 platform])
case "$host" in
*-*-mingw*|*-*-cygwin*)
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --output-def -Xlinker $lib.def && $DLLTOOL --dllname $soname --def $lib.def --output-delaylib $lib'
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is; otherwise, prepend...
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname.def;
else
echo EXPORTS > $output_objdir/$soname.def;
cat $export_symbols >> $output_objdir/$soname.def;
fi~
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base;
$DLLTOOL --dllname $soname --def $output_objdir/$soname.def --output-delaylib $lib'
platform_win32=yes
;;
*)
platform_win32=no
;;
esac
AC_MSG_RESULT([$platform_win32])
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
AC_MSG_CHECKING([for native Win32])
case "$host" in
*-*-mingw*)
os_win32=yes
AC_CHECK_TOOL(WINDRES, windres)
ACTIVE_PLUGINS="${ACTIVE_PLUGINS}, 'checkupdate'"
;;
*)
os_win32=no
;;
esac
AC_MSG_RESULT([$os_win32])
AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
dnl check for osx platform
AC_MSG_CHECKING([for Mac OS X platform])
case "$host" in
*-*-darwin*)
platform_osx=yes
;;
*)
platform_osx=no
;;
esac
AC_MSG_RESULT([$platform_osx])
AM_CONDITIONAL(PLATFORM_OSX, test "$platform_osx" = "yes")
dnl check for native osx
gdk_targets=`$PKG_CONFIG --variable=targets gdk-3.0`
gdk_windowing="x11"
for target in $gdk_targets;
do
case "$target" in
quartz)
gdk_windowing=quartz
;;
win32)
gdk_windowing=win32
;;
esac
done
AC_MSG_CHECKING([for native Mac OS X])
if test "$gdk_windowing" = "quartz"; then
os_osx=yes
ACTIVE_PLUGINS="${ACTIVE_PLUGINS}, 'checkupdate'"
else
os_osx=no
fi
AC_MSG_RESULT([$os_osx])
AM_CONDITIONAL(OS_OSX, test "$os_osx" = "yes")
AM_CONDITIONAL(GDK_WINDOWING_X11, test "$gdk_windowing" = "x11")
if test "$os_osx" = "yes"; then
AC_DEFINE([OS_OSX],[1],[Defined if os is Mac OSX])
PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration-gtk3 >= 2.0.8)
AC_SUBST(GTK_MAC_CFLAGS)
AC_SUBST(GTK_MAC_LIBS)
fi
dnl ===============================================================
dnl Expanded dirs
dnl ===============================================================
# This macro expands DIR and assigns it to RET.
# If DIR is NONE, then it's replaced by DEFAULT.
# Based on AC_DEFINE_DIR
AC_DEFUN([GEDIT_FULLPATH], [
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
ac_expand=[$]$1
test "x$ac_expand" = xNONE && ac_expand="[$]$2"
ac_expand=`eval echo [$]ac_expand`
$3=`eval echo [$]ac_expand`
])
dnl FULL_LIBEXECDIR is used for X-GNOME-Bugzilla-ExtraInfoScript expansion
dnl in data/org.gnome.gedit.desktop.in.in
GEDIT_FULLPATH(libexecdir, NONE, FULL_LIBEXECDIR)
AC_SUBST(FULL_LIBEXECDIR)
dnl ================================================================
dnl Gettext stuff.
dnl ================================================================
AM_GNU_GETTEXT_VERSION([0.19.8])
AM_GNU_GETTEXT([external])
AC_SUBST([GETTEXT_PACKAGE], [gedit])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Define to the gettext package name.])
dnl ================================================================
dnl Use gvfs metadata or the old xml file store.
dnl ================================================================
if test "x$os_win32" != "xno" || test "x$os_osx" != "xno"; then
gvfs_metadata_default="no"
else
gvfs_metadata_default="yes"
fi
AC_ARG_ENABLE([gvfs-metadata],
AS_HELP_STRING([--enable-gvfs-metadata], [Enable using gvfs to store metadata]),
[enable_gvfs_metadata=$enableval],
[enable_gvfs_metadata=$gvfs_metadata_default])
if test "x$enable_gvfs_metadata" != "xno"; then
AC_DEFINE([ENABLE_GVFS_METADATA], [1], [Define to enable using gvfs metadata])
fi
dnl ================================================================
dnl checkupdate plugin
dnl ================================================================
AC_ARG_ENABLE([updater],
AS_HELP_STRING([--disable-updater],[Disable check update plugin (default: enabled)]),
[enable_updater=$enableval],
[enable_updater=yes])
if test "x$enable_updater" != "xno"; then
PKG_CHECK_MODULES(LIBSOUP, \
libsoup-2.4,
have_libsoup=yes,
have_libsoup=no)
if test "x$have_libsoup" = "xyes"; then
if test "x$os_win32" = "xyes"; then
enable_updater=yes
elif test "x$os_osx" = "xyes"; then
enable_updater=yes
else
enable_updater=no
fi
else
enable_updater=no
fi
fi
AM_CONDITIONAL(ENABLE_UPDATER, test x"$enable_updater" = "xyes")
dnl ================================================================
dnl spell plugin checks
dnl ================================================================
AC_ARG_ENABLE([spell],
AS_HELP_STRING([--disable-spell],[Disable spell plugin (default: enabled)]),
[enable_spell=$enableval],
[enable_spell=yes])
if test "x$enable_spell" = "xyes" ; then
PKG_CHECK_MODULES(GSPELL, gspell-1 >= $GSPELL_REQUIRED, \
have_gspell=yes, have_gspell=no)
if test "x$have_gspell" = "xno"; then
AC_MSG_ERROR([gspell library not found or too old. Use --disable-spell to build without spell plugin.])
fi
fi
AM_CONDITIONAL(ENABLE_SPELL, test x"$enable_spell" = "xyes")
dnl ================================================================
dnl Check Python support
dnl ================================================================
AC_ARG_ENABLE([python],
AS_HELP_STRING([--enable-python[=@<:@no/auto/yes@:>@]],[Build with python support]),
[enable_python=$enableval],
[enable_python="auto"])
if test "x$enable_python" = "xauto"; then
PKG_CHECK_EXISTS([pygobject-3.0 >= $PYGOBJECT_REQUIRED],
[enable_python=yes],[enable_python=no])
fi
if test "x$enable_python" = "xyes"; then
AM_PATH_PYTHON(3.2.3)
PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED])
pyoverridesdir="\$(pyexecdir)/gi/overrides"
AC_SUBST(pyoverridesdir)
fi
AM_CONDITIONAL(ENABLE_PYTHON, test x"$enable_python" = "xyes")
dnl ================================================================
dnl Start of pkg-config checks
dnl ================================================================
# Dependencies
PKG_CHECK_MODULES(GEDIT, [
libxml-2.0 >= $LIBXML_REQUIRED
glib-2.0 >= $GLIB_REQUIRED
gio-2.0 >= $GLIB_REQUIRED
gmodule-2.0
gtk+-3.0 >= $GTK_REQUIRED
gtksourceview-4 >= $GTKSOURCEVIEW_REQUIRED
libpeas-1.0 >= $LIBPEAS_REQUIRED
libpeas-gtk-1.0 >= $LIBPEAS_REQUIRED
gsettings-desktop-schemas
])
if test "$os_osx" = "no" &&
test "$os_win32" = "no"; then
PKG_CHECK_MODULES(X11, [
x11
])
else
X11_CFLAGS=
X11_LIBS=
fi
GEDIT_CFLAGS="$GEDIT_CFLAGS $X11_CFLAGS"
GEDIT_LIBS="$GEDIT_LIBS $X11_LIBS"
AC_SUBST(GEDIT_CFLAGS)
AC_SUBST(GEDIT_LIBS)
dnl ================================================================
dnl Deprecations
dnl ================================================================
AC_ARG_ENABLE(deprecations,
[AS_HELP_STRING([--enable-deprecations],
[show error when a deprecated API is used [default=no]])],
[enable_deprecations=$enableval], [])
AC_MSG_CHECKING([whether to forbid deprecated symbols])
if test "$enable_deprecations" = "yes"; then
AC_MSG_RESULT(yes)
DISABLE_DEPRECATED_CFLAGS="\
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED \
-DPEAS_DISABLE_DEPRECATED"
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
else
AC_MSG_RESULT(no)
fi
dnl ================================================================
dnl User help
dnl ================================================================
YELP_HELP_INIT
# Hack: since non-recursive make is used, it can be useful to disable the user
# help since it takes a lot of time to build and install. On the other hand
# with recursive make it's usually possible to build and install only what we
# need...
AC_ARG_ENABLE([user_help],
AS_HELP_STRING([--disable-user-help],[Disable the user help to speed the build (default: enabled)]),
[enable_user_help=$enableval],
[enable_user_help=yes])
AM_CONDITIONAL(ENABLE_USER_HELP, test x"$enable_user_help" = "xyes")
dnl ================================================================
dnl GObject Introspection
dnl ================================================================
GOBJECT_INTROSPECTION_CHECK([1.42.0])
if test "$found_introspection" = "yes"; then
enable_introspection=yes
AC_DEFINE([ENABLE_INTROSPECTION], [1], [Define to enable GObject Introspection])
else
enable_introspection=no
fi
dnl ================================================================
dnl Internal lib on win32
dnl ================================================================
# on win32 plugins must be able to resolve all symbols at link time
# so we create a lib
if test "$platform_win32" = yes; then
GEDIT_IMPLIB='-L${libdir}/gedit -lgedit'
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version -no-undefined"
if test "$os_win32" = yes; then
PLUGIN_LIBTOOL_FLAGS="${PLUGIN_LIBTOOL_FLAGS} -mwindows"
fi
else
GEDIT_IMPLIB=""
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
fi
AC_SUBST(GEDIT_IMPLIB)
AC_SUBST(PLUGIN_LIBTOOL_FLAGS)
dnl ================================================================
dnl Resource files depending on the OS
dnl ================================================================
if test "$os_osx" = "yes"; then
os_style_css=gedit-style-osx.css
else
os_style_css=
OS_DEPENDENT_RESOURCE_FILES='<file preprocess="xml-stripblanks">gtk/menus-traditional.ui</file>'
fi
if test "x$os_style_css" != "x"; then
OS_DEPENDENT_RESOURCE_FILES+="<file>css/gedit-style-os.css</file>"
AC_CONFIG_LINKS(gedit/resources/css/gedit-style-os.css:gedit/resources/css/$os_style_css)
fi
AC_SUBST(OS_DEPENDENT_RESOURCE_FILES)
dnl ================================================================
dnl Misc
dnl ================================================================
LIBGD_INIT([tagged-entry static])
GLIB_GSETTINGS
# Vala
VAPIGEN_CHECK([0.25.1])
AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
GNOME_COMPILE_WARNINGS([maximum])
GEDIT_PLUGINS_DATA_DIR="$datadir/gedit/plugins"
AC_SUBST(GEDIT_PLUGINS_DATA_DIR)
GEDIT_PLUGINS_LIBS_DIR="$libdir/gedit/plugins"
AC_SUBST(GEDIT_PLUGINS_LIBS_DIR)
AC_CONFIG_FILES([
Makefile
gedit/resources/gedit.gresource.xml
data/org.gnome.gedit.desktop.in
data/gedit.pc
data/org.gnome.gedit.gschema.xml
docs/Makefile
docs/reference/Makefile
help/Makefile
libgd/Makefile
plugins/checkupdate/org.gnome.gedit.plugins.checkupdate.gschema.xml
plugins/externaltools/org.gnome.gedit.plugins.externaltools.gschema.xml
plugins/filebrowser/org.gnome.gedit.plugins.filebrowser.gschema.xml
plugins/pythonconsole/org.gnome.gedit.plugins.pythonconsole.gschema.xml
plugins/time/org.gnome.gedit.plugins.time.gschema.xml
po/Makefile.in
osx/bundle/data/Info.plist])
AC_OUTPUT
echo "
Configuration:
Source code location: ${srcdir}
Compiler: ${CC}
Spell Plugin enabled: $enable_spell
Gvfs metadata enabled: $enable_gvfs_metadata
Deprecations enabled: $enable_deprecations
GObject Introspection: $enable_introspection
GDK Backend: $gdk_windowing
Python support: $enable_python
Vala support: $enable_vala
"
if expr ${GEDIT_MINOR_VERSION} % 2 > /dev/null; then
stable_version=`expr ${GEDIT_MINOR_VERSION} - 1`
cat << EOF
*** IMPORTANT ***
This is an unstable version of gedit.
It is for test purposes only.
Please, DO NOT use it in a production environment.
It will probably crash and you will lose your data.
If you are looking for a stable release of gedit, either download
it from:
https://download.gnome.org/sources/gedit/${GEDIT_MAJOR_VERSION}.${stable_version}/
Or checkout the gnome-${GEDIT_MAJOR_VERSION}-${stable_version} branch of the gedit module from:
https://gitlab.gnome.org/GNOME/gedit
Thanks,
The gedit team
*** END OF WARNING ***
EOF
fi
data_desktopdir = $(datadir)/applications
data_desktop_in_files = data/org.gnome.gedit.desktop.in
data_desktop_DATA = $(data_desktop_in_files:.desktop.in=.desktop)
$(data_desktop_DATA): $(data_desktop_in_files) $(wildcard $(top_srcdir)/po/*po)
$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
data_appdatadir = $(datadir)/metainfo
data_appdata_in_files = data/org.gnome.gedit.appdata.xml.in
data_appdata_DATA = $(data_appdata_in_files:.xml.in=.xml)
$(data_appdata_DATA): $(data_appdata_in_files) $(wildcard $(top_srcdir)/po/*po)
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
data_servicedir = $(datadir)/dbus-1/services
data_service_in_files = data/org.gnome.gedit.service.in
data_service_DATA = $(data_service_in_files:.service.in=.service)
$(data_service_DATA): $(data_service_in_files) Makefile
@sed -e "s|\@bindir\@|$(bindir)|" $<> $@
dist_man_MANS = data/gedit.1
data_pkgconfigdir = $(libdir)/pkgconfig
data_pkgconfig_DATA = data/gedit.pc
data_bugreportdir = $(libexecdir)/gedit
dist_data_bugreport_SCRIPTS = data/gedit-bugreport.sh
gsettings_SCHEMAS += data/org.gnome.gedit.gschema.xml
gsettings_ENUMS += data/org.gnome.gedit.enums.xml
data/org.gnome.gedit.enums.xml: $(top_srcdir)/gedit/*.h
if OS_OSX
dist_gsettingsschema_DATA += data/gedit-osx.gschema.override
endif
data_convertdir = $(datadir)/GConf/gsettings
dist_data_convert_DATA = data/gedit.convert
EXTRA_DIST += \
$(data_desktop_in_files) \
$(data_appdata_in_files) \
$(data_service_in_files) \
data/org.gnome.gedit.gschema.xml.in \
data/gedit.pc.in
CLEANFILES += \
$(data_appdata_DATA) \
$(data_desktop_DATA) \
$(data_service_DATA) \
$(data_pkgconfig_DATA)
DISTCLEANFILES += \
$(data_desktop_DATA) \
$(data_service_DATA) \
$(data_pkgconfig_DATA)
iconscalabledir = $(datadir)/icons/hicolor/scalable/apps
iconscalable_DATA = data/icons/hicolor/scalable/apps/org.gnome.gedit.svg
iconsymbolicdir = $(datadir)/icons/hicolor/symbolic/apps
iconsymbolic_DATA = data/icons/hicolor/symbolic/apps/org.gnome.gedit-symbolic.svg
icon_files = \
$(iconscalable_DATA) \
$(iconsymbolic_DATA)
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
EXTRA_DIST += $(icon_files)
SUBDIRS = reference
EXTRA_DIST = class-diagram.dia
-include $(top_srcdir)/git.mk
## Process this file with automake to produce Makefile.in
# see /gtk-doc/examples/Makefile.am
# We require automake 1.6 at least.
AUTOMAKE_OPTIONS = 1.6
# The name of the module
DOC_MODULE = gedit
# The top-level XML file (SGML in the past).
DOC_MAIN_SGML_FILE = gedit-docs.xml
# The directory containing the source code. Relative to $(srcdir).
DOC_SOURCE_DIR = ../../gedit
# Extra options to supply to gtkdoc-scan.
# e.g. SCAN_OPTIONS = --deprecated-guards="GTK_DISABLE_DEPRECATED"
SCAN_OPTIONS = --rebuild-types --deprecated-guards="GEDIT_DISABLE_DEPRECATED"
# Extra options to supply to gtkdoc-mkdb.
MKDB_OPTIONS = --xml-mode --output-format=xml
# Used for dependencies. The docs will be rebuilt if any of these change.
HFILE_GLOB = $(top_srcdir)/gedit/*.h
CFILE_GLOB = $(top_srcdir)/gedit/*.c
# Header files to ignore when scanning (These are internal to gedit).
IGNORE_HFILES = \
gedit-app-osx.h \
gedit-app-win32.h \
gedit-app-x11.h \
gedit-close-confirmation-dialog.h \
gedit-dirs.h \
gedit-document-private.h \
gedit-documents-panel.h \
gedit-encoding-items.h \
gedit-encodings-dialog.h \
gedit-enum-types.h \
gedit-file-chooser-dialog.h \
gedit-file-chooser-dialog-osx.h \