]> Pileus Git - ~andy/gtk/commitdiff
Add git.mk to generate .gitignore files
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 4 May 2009 00:08:11 +0000 (20:08 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 4 May 2009 18:29:21 +0000 (14:29 -0400)
Add four new doc templates that were not in repository.

50 files changed:
Makefile.am
contrib/Makefile.am
contrib/gdk-pixbuf-xlib/Makefile.am
demos/Makefile.am
demos/gtk-demo/Makefile.am
docs/Makefile.am
docs/faq/Makefile.am
docs/reference/Makefile.am
docs/reference/gdk-pixbuf/Makefile.am
docs/reference/gdk/Makefile.am
docs/reference/gtk/Makefile.am
docs/reference/gtk/tmpl/filesystem.sgml [new file with mode: 0644]
docs/reference/gtk/tmpl/gtkactivatable.sgml [new file with mode: 0644]
docs/reference/gtk/tmpl/gtkimcontext.sgml [new file with mode: 0644]
docs/reference/gtk/tmpl/gtktoolshell.sgml [new file with mode: 0644]
docs/reference/libgail-util/Makefile.am
docs/tools/Makefile.am
docs/tutorial/Makefile.am
gdk-pixbuf/Makefile.am
gdk-pixbuf/pixops/Makefile.am
gdk/Makefile.am
gdk/directfb/Makefile.am
gdk/quartz/Makefile.am
gdk/tests/Makefile.am
gdk/win32/Makefile.am
gdk/win32/rc/Makefile.am
gdk/x11/Makefile.am
git.mk [new file with mode: 0644]
gtk/Makefile.am
gtk/tests/Makefile.am
gtk/theme-bits/Makefile.am
m4macros/Makefile.am
modules/Makefile.am
modules/engines/Makefile.am
modules/engines/ms-windows/Makefile.am
modules/engines/ms-windows/Theme/Makefile.am
modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am
modules/engines/pixbuf/Makefile.am
modules/input/Makefile.am
modules/other/Makefile.am
modules/other/gail/Makefile.am
modules/other/gail/libgail-util/Makefile.am
modules/other/gail/tests/Makefile.am
modules/printbackends/Makefile.am
modules/printbackends/cups/Makefile.am
modules/printbackends/file/Makefile.am
modules/printbackends/lpr/Makefile.am
modules/printbackends/test/Makefile.am
perf/Makefile.am
tests/Makefile.am

index 7264d564c1de0e273be2ebd7eabadede5030c5c3..090c2fb4ceabb9cf235d9fa6a57ead8b515d5915 100644 (file)
@@ -118,6 +118,26 @@ EXTRA_DIST +=                      \
        examples/spinbutton/spinbutton.c  \
        examples/spinbutton/Makefile  \
        examples/find-examples.sh
+MAINTAINERCLEANFILES = \
+       $(srcdir)/INSTALL \
+       $(srcdir)/README \
+       $(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 \
+       $(srcdir)/ChangeLog \
+       `find "$(srcdir)" -type f -name Makefile.in -print`
 
 GDKTARGET=@gdktarget@
 
@@ -223,3 +243,15 @@ snapshot:
        $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
 
 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-man --disable-rebuilds
+
+GITIGNOREFILES = \
+       po-properties/Makefile.in.in \
+       po-properties/Makefile.in \
+       po-properties/Makefile \
+       po-properties/*.gmo \
+       po-properties/*.mo \
+       po-properties/POTFILES \
+       po-properties/stamp-it \
+       po-properties/.intltool-merge-cache
+
+-include $(top_srcdir)/git.mk
index 3d2ba11ebc1c98754b2771581ffd370eace939db..feb4bdbf82b9d078b6fa97c483f5b1bcf5f569c0 100644 (file)
@@ -4,3 +4,5 @@ SUBDIRS =
 if USE_X11
 SUBDIRS += gdk-pixbuf-xlib
 endif
+
+-include $(top_srcdir)/git.mk
index 328bbe67584a8ce981b339c88c98b72754c1e6d1..4b89e5172d85e2a28c041c87d2f362e248aea31c 100644 (file)
@@ -38,3 +38,5 @@ pkgconfigdir   = $(libdir)/pkgconfig
 pkgconfig_DATA = gdk-pixbuf-xlib-2.0.pc
 
 EXTRA_DIST += gdk-pixbuf-xlib-2.0.pc.in
+
+-include $(top_srcdir)/git.mk
index fd819543e207c67c44ac702fb27bab2fb416ecc2..c8c9bbb1c5eecb35e3cee923e274bfccd2628d9b 100644 (file)
@@ -82,3 +82,5 @@ EXTRA_DIST +=                 \
        gnu-keys.png
 
 DISTCLEANFILES = test-inline-pixbufs.h
+
+-include $(top_srcdir)/git.mk
index 46ebc03a1bb9a0b3a204d40ce7afbaf79cd8e97a..e9c51d0b95274ddfedde0f21b15d34eb8071d2c8 100644 (file)
@@ -96,3 +96,5 @@ IMAGEFILES=   alphatest.png           \
 democode_DATA = $(demos) $(IMAGEFILES) demo.ui
 
 DISTCLEANFILES = demos.h
+
+-include $(top_srcdir)/git.mk
index 47f80304cda960af6bb73816912aae62f3c389df..515a7c100aecbacd5c7a6f53eadfe78896a50dc0 100644 (file)
@@ -19,3 +19,5 @@ EXTRA_DIST += \
        generation.txt                  \
        gtkdocs_fix                     \
        RELEASE-HOWTO
+
+-include $(top_srcdir)/git.mk
index 5aebcd2b455173fc92dc9ebf18217c695071fbbe..9bdaf1284c92b5efcacdc1fe23fb42c4940b425e 100644 (file)
@@ -38,3 +38,5 @@ dist-hook:
 endif
 
 .PHONY: html
+
+-include $(top_srcdir)/git.mk
index f4d7451db126653d5994e72d694c666f18ef6cdc..f780c4f16268d0945a28fba4fefcbc8e08c08639 100644 (file)
@@ -3,3 +3,6 @@ include $(top_srcdir)/Makefile.decl
 
 SUBDIRS = gdk-pixbuf gdk gtk libgail-util
 
+GITIGNOREFILES = */*.1
+
+-include $(top_srcdir)/git.mk
index 5beb9259ad42b2fec508f82dcbf78b3738691196..7734e72e8db60e2478e6aa44baa381bcb163d5b2 100644 (file)
@@ -95,3 +95,5 @@ dist-hook-local: $(BUILT_EXTRA_DIST)
        for f in $$files; do                                    \
          if test -f $$f; then d=.; else d=$(srcdir); fi;       \
          cp $$d/$$f $(distdir) || exit 1; done
+
+-include $(top_srcdir)/git.mk
index 28d7035e8d947532291a95e84e837667d08f9299..7e21e35fdba9d4e0fef3468cfe543d319a215e84 100644 (file)
@@ -152,3 +152,5 @@ include $(top_srcdir)/gtk-doc.make
 
 # Other files to distribute
 EXTRA_DIST += version.xml.in
+
+-include $(top_srcdir)/git.mk
index 0c5e05997352f8aeb7c39d816b2cbff34e6b5697..d7ffd71bcb84e252c4f016a1bfc1fa1532e21318 100644 (file)
@@ -377,3 +377,5 @@ dist-hook-local: $(BUILT_EXTRA_DIST)
        for f in $$files; do                                    \
          if test -f $$f; then d=.; else d=$(srcdir); fi;       \
          cp $$d/$$f $(distdir) || exit 1; done
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/reference/gtk/tmpl/filesystem.sgml b/docs/reference/gtk/tmpl/filesystem.sgml
new file mode 100644 (file)
index 0000000..15c9de5
--- /dev/null
@@ -0,0 +1,108 @@
+<!-- ##### SECTION Title ##### -->
+Filesystem utilities
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### STRUCT GtkMountOperation ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### ARG GtkMountOperation:is-showing ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkMountOperation:parent ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkMountOperation:screen ##### -->
+<para>
+
+</para>
+
+<!-- ##### FUNCTION gtk_mount_operation_new ##### -->
+<para>
+
+</para>
+
+@parent:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_mount_operation_is_showing ##### -->
+<para>
+
+</para>
+
+@op:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_mount_operation_set_parent ##### -->
+<para>
+
+</para>
+
+@op:
+@parent:
+
+
+<!-- ##### FUNCTION gtk_mount_operation_get_parent ##### -->
+<para>
+
+</para>
+
+@op:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_mount_operation_set_screen ##### -->
+<para>
+
+</para>
+
+@op:
+@screen:
+
+
+<!-- ##### FUNCTION gtk_mount_operation_get_screen ##### -->
+<para>
+
+</para>
+
+@op:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_show_uri ##### -->
+<para>
+
+</para>
+
+@screen:
+@uri:
+@timestamp:
+@error:
+@Returns:
+
+
diff --git a/docs/reference/gtk/tmpl/gtkactivatable.sgml b/docs/reference/gtk/tmpl/gtkactivatable.sgml
new file mode 100644 (file)
index 0000000..3911672
--- /dev/null
@@ -0,0 +1,100 @@
+<!-- ##### SECTION Title ##### -->
+GtkActivatable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### STRUCT GtkActivatable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### ARG GtkActivatable:related-action ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GtkActivatable:use-action-appearance ##### -->
+<para>
+
+</para>
+
+<!-- ##### STRUCT GtkActivatableIface ##### -->
+<para>
+
+</para>
+
+@g_iface:
+@update:
+@sync_action_properties:
+
+<!-- ##### FUNCTION gtk_activatable_do_set_related_action ##### -->
+<para>
+
+</para>
+
+@activatable:
+@action:
+
+
+<!-- ##### FUNCTION gtk_activatable_get_related_action ##### -->
+<para>
+
+</para>
+
+@activatable:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_activatable_get_use_action_appearance ##### -->
+<para>
+
+</para>
+
+@activatable:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_activatable_sync_action_properties ##### -->
+<para>
+
+</para>
+
+@activatable:
+@action:
+
+
+<!-- ##### FUNCTION gtk_activatable_set_related_action ##### -->
+<para>
+
+</para>
+
+@activatable:
+@action:
+
+
+<!-- ##### FUNCTION gtk_activatable_set_use_action_appearance ##### -->
+<para>
+
+</para>
+
+@activatable:
+@use_appearance:
+
+
diff --git a/docs/reference/gtk/tmpl/gtkimcontext.sgml b/docs/reference/gtk/tmpl/gtkimcontext.sgml
new file mode 100644 (file)
index 0000000..7257879
--- /dev/null
@@ -0,0 +1,212 @@
+<!-- ##### SECTION Title ##### -->
+GtkIMContext
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### STRUCT GtkIMContext ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SIGNAL GtkIMContext::commit ##### -->
+<para>
+
+</para>
+
+@imcontext: the object which received the signal.
+@arg1:
+
+<!-- ##### SIGNAL GtkIMContext::delete-surrounding ##### -->
+<para>
+
+</para>
+
+@imcontext: the object which received the signal.
+@arg1:
+@arg2:
+@Returns:
+
+<!-- ##### SIGNAL GtkIMContext::preedit-changed ##### -->
+<para>
+
+</para>
+
+@imcontext: the object which received the signal.
+
+<!-- ##### SIGNAL GtkIMContext::preedit-end ##### -->
+<para>
+
+</para>
+
+@imcontext: the object which received the signal.
+
+<!-- ##### SIGNAL GtkIMContext::preedit-start ##### -->
+<para>
+
+</para>
+
+@imcontext: the object which received the signal.
+
+<!-- ##### SIGNAL GtkIMContext::retrieve-surrounding ##### -->
+<para>
+
+</para>
+
+@imcontext: the object which received the signal.
+@Returns:
+
+<!-- ##### STRUCT GtkIMContextClass ##### -->
+<para>
+
+</para>
+
+@preedit_start:
+@preedit_end:
+@preedit_changed:
+@commit:
+@retrieve_surrounding:
+@delete_surrounding:
+@set_client_window:
+@get_preedit_string:
+@filter_keypress:
+@focus_in:
+@focus_out:
+@reset:
+@set_cursor_location:
+@set_use_preedit:
+@set_surrounding:
+@get_surrounding:
+
+<!-- ##### STRUCT GtkIMContextInfo ##### -->
+<para>
+
+</para>
+
+@context_id:
+@context_name:
+@domain:
+@domain_dirname:
+@default_locales:
+
+<!-- ##### FUNCTION gtk_im_context_set_client_window ##### -->
+<para>
+
+</para>
+
+@context:
+@window:
+
+
+<!-- ##### FUNCTION gtk_im_context_get_preedit_string ##### -->
+<para>
+
+</para>
+
+@context:
+@str:
+@attrs:
+@cursor_pos:
+
+
+<!-- ##### FUNCTION gtk_im_context_filter_keypress ##### -->
+<para>
+
+</para>
+
+@context:
+@event:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_im_context_focus_in ##### -->
+<para>
+
+</para>
+
+@context:
+
+
+<!-- ##### FUNCTION gtk_im_context_focus_out ##### -->
+<para>
+
+</para>
+
+@context:
+
+
+<!-- ##### FUNCTION gtk_im_context_reset ##### -->
+<para>
+
+</para>
+
+@context:
+
+
+<!-- ##### FUNCTION gtk_im_context_set_cursor_location ##### -->
+<para>
+
+</para>
+
+@context:
+@area:
+
+
+<!-- ##### FUNCTION gtk_im_context_set_use_preedit ##### -->
+<para>
+
+</para>
+
+@context:
+@use_preedit:
+
+
+<!-- ##### FUNCTION gtk_im_context_set_surrounding ##### -->
+<para>
+
+</para>
+
+@context:
+@text:
+@len:
+@cursor_index:
+
+
+<!-- ##### FUNCTION gtk_im_context_get_surrounding ##### -->
+<para>
+
+</para>
+
+@context:
+@text:
+@cursor_index:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_im_context_delete_surrounding ##### -->
+<para>
+
+</para>
+
+@context:
+@offset:
+@n_chars:
+@Returns:
+
+
diff --git a/docs/reference/gtk/tmpl/gtktoolshell.sgml b/docs/reference/gtk/tmpl/gtktoolshell.sgml
new file mode 100644 (file)
index 0000000..8e31f27
--- /dev/null
@@ -0,0 +1,82 @@
+<!-- ##### SECTION Title ##### -->
+GtkToolShell
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### STRUCT GtkToolShell ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT GtkToolShellIface ##### -->
+<para>
+
+</para>
+
+@get_icon_size:
+@get_orientation:
+@get_style:
+@get_relief_style:
+@rebuild_menu:
+
+<!-- ##### FUNCTION gtk_tool_shell_get_icon_size ##### -->
+<para>
+
+</para>
+
+@shell:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_tool_shell_get_orientation ##### -->
+<para>
+
+</para>
+
+@shell:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_tool_shell_get_relief_style ##### -->
+<para>
+
+</para>
+
+@shell:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_tool_shell_get_style ##### -->
+<para>
+
+</para>
+
+@shell:
+@Returns:
+
+
+<!-- ##### FUNCTION gtk_tool_shell_rebuild_menu ##### -->
+<para>
+
+</para>
+
+@shell:
+
+
index 92bdbd870ac50216d83a0a0e2d92d9b7cd664af3..e6b4bb96bb340d8442bc156c7c5e9caeae1909d0 100644 (file)
@@ -32,3 +32,5 @@ content_files =
 HTML_IMAGES =
 
 include $(top_srcdir)/gtk-doc.make
+
+-include $(top_srcdir)/git.mk
index 4b781426450ebec9f2ece97bde4bdc396464f6fe..3b3c09bcc9ccbe7dc14a09fdf5213b393870a190 100644 (file)
@@ -40,3 +40,5 @@ clean-local:
            *) rm -f $$file ;; \
          esac ; \
        done
+
+-include $(top_srcdir)/git.mk
index 43e6c244134b887c3824c29f305c5d6b8ac438d7..5448bd2960158e850bcadf80456a312578425011 100644 (file)
@@ -72,3 +72,5 @@ dist-hook:
        echo "***"
 endif
 
+
+-include $(top_srcdir)/git.mk
index c1ac55438317315a864cfacafc9940eb4f2c17f0..39b52f3ce23ed7dbd68bb8b7f16c5d407fb1b8a1 100644 (file)
@@ -718,3 +718,5 @@ gdk-pixbuf.loaders:
        echo "No dynamic modules found; will use only static modules for uninstalled example programs."; \
        touch gdk-pixbuf.loaders;
 endif
+
+-include $(top_srcdir)/git.mk
index e4c4e26cbfef1be3e940194ffe2abb8be8467db6..fe7775a2938a804fa90bc8e1fbad15ef68eb1ec7 100644 (file)
@@ -30,3 +30,5 @@ EXTRA_DIST +=                         \
        DETAILS                         \
        pixbuf-transform-math.ltx       \
        makefile.msc
+
+-include $(top_srcdir)/git.mk
index cc0ae0da04360a24843e0e8dfd6950b245fcd8c1..52a5bf04608f9e6b0d4ee3f270a292f4877ab456 100644 (file)
@@ -303,3 +303,5 @@ files:
        @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
          echo $$p; \
        done
+
+-include $(top_srcdir)/git.mk
index e7b7966eaf6d2b5925302276b3f133d70f86793c..867f470cd940c25623fda77bab46250acc57b818 100644 (file)
@@ -56,3 +56,5 @@ libgdkinclude_HEADERS =               \
 
 
 EXTRA_DIST += AUTHORS README TODO 
+
+-include $(top_srcdir)/git.mk
index 2e2fbc888f9faa01dd843c282e418d2e06006f73..2c3e621c59fb4f791d1f74be5cca0c39bd65b237 100644 (file)
@@ -57,3 +57,5 @@ libgdk_quartz_la_SOURCES =            \
 libgdkinclude_HEADERS =        \
        gdkquartz.h
 
+
+-include $(top_srcdir)/git.mk
index 741722999200ea2141fafdc36cc0aff99b00170f..423a353d61c06c01bb42cd248a62ef6d137a9c00 100644 (file)
@@ -25,3 +25,5 @@ check_gdk_cairo_LDADD=\
 CLEANFILES = \
        cairosurface.png        \
        gdksurface.png
+
+-include $(top_srcdir)/git.mk
index 02f8c2f7aa86cc34fffb30280d7e9ac5f8fdb342..17d048eddedf08c4d12c8e44a979590925058429 100644 (file)
@@ -63,3 +63,5 @@ libgdk_win32_la_SOURCES = \
 
 libgdkinclude_HEADERS =                \
        gdkwin32.h
+
+-include $(top_srcdir)/git.mk
index 4253b5a523f172560511e560d52e535e66acd6ed..91719233ccbb2a8ec325b7cdcb4cf087488ade34 100644 (file)
@@ -11,3 +11,5 @@ endif
 
 gdk-win32-res.o : gdk.rc gtk.ico
        $(WINDRES) gdk.rc $@
+
+-include $(top_srcdir)/git.mk
index 0b6d5ec5d5332754bb2946aab4bcd1d3a2e381b6..5d41ec8f3fded8a1fb19765a0f60d54ff95bfa1e 100644 (file)
@@ -82,3 +82,5 @@ EXTRA_DIST +=                         \
        gdkinput-xfree.c        \
        gdkinput-none.c         \
        gdksettings.c
+
+-include $(top_srcdir)/git.mk
diff --git a/git.mk b/git.mk
new file mode 100644 (file)
index 0000000..4b742b5
--- /dev/null
+++ b/git.mk
@@ -0,0 +1,182 @@
+# git.mk
+#
+# Copyright 2009, Red Hat, Inc.
+# Written by Behdad Esfahbod
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.
+#
+# The canonical source for this file is pango/git.mk, or whereever the
+# header of pango/git.mk suggests in the future.
+#
+# 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.
+#
+# 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.
+#
+# 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.
+#
+# For a list of toplevel files that should be in MAINTAINERCLEANFILES, see
+# pango/Makefile.am.
+#
+# 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, intltool.
+#
+#
+# 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.
+#
+
+git-all: git-mk-install
+
+git-mk-install:
+       @echo Installing git makefile
+       @any_failed=; find $(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
+
+
+### .gitignore generation
+
+$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
+       @echo 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)" = x -o "x$(DOC_LINGUAS)" = x; then :; else \
+                       for x in \
+                               $(_DOC_C_DOCS) \
+                               $(_DOC_LC_DOCS) \
+                               $(_DOC_OMF_ALL) \
+                               $(_DOC_DSK_ALL) \
+                               $(_DOC_HTML_ALL) \
+                               $(_DOC_POFILES) \
+                               "*/.xml2po.mo" \
+                               "*/*.omf.out" \
+                       ; 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" \
+                               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; \
+               for x in \
+                       .gitignore \
+                       $(GITIGNOREFILES) \
+                       $(CLEANFILES) \
+                       $(PROGRAMS) \
+                       $(EXTRA_PROGRAMS) \
+                       $(LTLIBRARIES) \
+                       so_locations \
+                       .libs _libs \
+                       $(MOSTLYCLEANFILES) \
+                       "*.$(OBJEXT)" \
+                       "*.lo" \
+                       $(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]" \
+               ; do echo /$$x; done; \
+       } | \
+       sed "s@^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \
+       sed 's@/[.]/@/@g' | \
+       LANG=C sort | uniq > $@.tmp && \
+       mv $@.tmp $@;
+
+all: $(srcdir)/.gitignore gitignore-recurse-maybe
+gitignore-recurse-maybe:
+       @if test "x$(SUBDIRS)" = "x$(DIST_SUBDIRS)"; then :; else \
+               $(MAKE) $(AM_MAKEFLAGS) gitignore-recurse; \
+       fi;
+gitignore-recurse:
+       @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse); \
+       done
+gitignore: $(srcdir)/.gitignore gitignore-recurse
+
+maintainer-clean: gitignore-clean
+gitignore-clean:
+       -rm -f $(srcdir)/.gitignore
+
+.PHONY: gitignore-clean gitignore gitignore-recurse gitignore-recurse-maybe
index 2339a86543ae8140b43aed9cbbec2aa8932a4cbb..a0dc9a984ee769452e8c9f436ac1f57983d2e448 100644 (file)
@@ -778,7 +778,7 @@ gtk_extra_sources =                         \
 #
 # setup GTK+ sources and their dependencies
 #
-MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS)
+MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) stock-icons/icon-theme.cache
 EXTRA_HEADERS =
 EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
 EXTRA_DIST += $(gtk_built_sources)
@@ -1286,3 +1286,5 @@ EXTRA_DIST +=                   \
 
 
 install-data-local:
+
+-include $(top_srcdir)/git.mk
index f36d5e53837a45c68ea6372aa654cb663a05a57d..4c8ff1f1a6d0a4f57b4c6a6a2ceb5094a3c6a199 100644 (file)
@@ -77,3 +77,5 @@ defaultvalue_LDADD             = $(progs_ldadd)
 TEST_PROGS                     += textbuffer
 textbuffer_SOURCES              = textbuffer.c pixbuf-init.c
 textbuffer_LDADD                = $(progs_ldadd)
+
+-include $(top_srcdir)/git.mk
index eb24bfc76caadf2c6cfc48a30b9ebd6f3becbfd1..4ad04978a4dfc864082792a062eb83016dee0420 100644 (file)
@@ -11,3 +11,5 @@ decompose_bits_SOURCES = decompose-bits.c
 decompose_bits_LDADD = $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la
 
 EXTRA_DIST += check-13.png check-13-inconsistent.png radio-13.png radio-13-inconsistent.png
+
+-include $(top_srcdir)/git.mk
index ad797d84cb7fb0e4d2543ed372daf6c40284bebe..82cd07ea667ca90c4dfcbe39e2198d642bc36fdf 100644 (file)
@@ -6,3 +6,5 @@ EXTRA_DIST += $(installed_m4)
 
 m4datadir = $(datadir)/aclocal
 m4data_DATA = $(installed_m4)
+
+-include $(top_srcdir)/git.mk
index 86a89af3c791c52485e3b03fb31d649c94ae6d15..40d5fa5fd12098dbfa66b52d69ae670f4c1a091c 100644 (file)
@@ -5,3 +5,5 @@ SUBDIRS = input engines other
 if OS_UNIX
 SUBDIRS += printbackends
 endif
+
+-include $(top_srcdir)/git.mk
index eb8a899e75db581103a0e8ace8e030373e9bbbb1..7f652395518fa3d98bd24e3959630d6cdf13bfcb 100644 (file)
@@ -5,3 +5,5 @@ wimp = ms-windows
 endif
 
 SUBDIRS = $(wimp) pixbuf
+
+-include $(top_srcdir)/git.mk
index 975d061c000a3dc47ffa8c39f1d4136814fabcea..541bf9e8b22cf31a3e12910ec1d95fdee78858dc 100644 (file)
@@ -36,3 +36,5 @@ libwimp_la_LDFLAGS = \
        -avoid-version -module -no-undefined -export-dynamic
 
 libwimp_la_LIBADD = $(LDADDS) -lgdi32
+
+-include $(top_srcdir)/git.mk
index 59f4176450cf87629d2b09d23ba559f09f2fe119..e7fad20372e495f14077cfc45a73f899c6c67c76 100644 (file)
@@ -1,3 +1,5 @@
 include $(top_srcdir)/Makefile.decl
 
 SUBDIRS=gtk-2.0
+
+-include $(top_srcdir)/git.mk
index 8957184ee4723221cb9e7c8c72520083a34898a6..a03371f4a7002240be9242a8d7ba5c135d95da11 100644 (file)
@@ -4,3 +4,5 @@ themedir = $(datadir)/themes/MS-Windows/gtk-2.0
 theme_DATA=gtkrc
 
 EXTRA_DIST += $(theme_DATA)
+
+-include $(top_srcdir)/git.mk
index df50cba67af10af6585753b55e72e1f121163122..f90bdd5532cbd12127ac93839b8e0d14f2ed205a 100644 (file)
@@ -33,3 +33,5 @@ libpixmap_la_SOURCES =                \
 libpixmap_la_LDFLAGS =  -avoid-version -module $(no_undefined)
 libpixmap_la_LIBADD = $(LDADDS)
 
+
+-include $(top_srcdir)/git.mk
index 0613d049a05b8ac5c2b4dd20db132468ec437e16..9a1bf2e861f4a26c010040f4512200815770c2fb 100644 (file)
@@ -248,3 +248,5 @@ if CROSS_COMPILING
 else
 all-local: gtk.immodules
 endif
+
+-include $(top_srcdir)/git.mk
index a4fd2c92f802c9cd4900bbe566942674896655a3..5b647d66d1d4af1615aabfd2d1b15986718c8c88 100644 (file)
@@ -1,3 +1,5 @@
 include $(top_srcdir)/Makefile.decl
 
 SUBDIRS = gail
+
+-include $(top_srcdir)/git.mk
index 24d0d58ffcbd12ad6c060d921ad03d118f063e40..6ffe591db2b402a93281e1e9e2f4f429a357656e 100644 (file)
@@ -168,3 +168,5 @@ libgail_la_LDFLAGS =    \
        -rpath $(moduledir) -module -avoid-version \
        $(no_undefined) \
         $(LDFLAGS)
+
+-include $(top_srcdir)/git.mk
index 856a6c01a9a8902a9b38b528a4f4bb0de486626d..3145719b56e0d5e7b73389a3e9135ae29428a4b9 100644 (file)
@@ -80,3 +80,5 @@ gailutil.lib: libgailutil.la gailutil.def
 install-data-local: install-ms-lib install-def-file
 
 uninstall-local: uninstall-ms-lib uninstall-def-file
+
+-include $(top_srcdir)/git.mk
index aaa6389396731aa109fda07d253cba80f36b88e8..993249558ada35265398e15c3f7bea9901c3992f 100644 (file)
@@ -269,3 +269,5 @@ libtestvalues_la_LDFLAGS =  \
        $(top_builddir)/gdk/$(gdktargetlib) \
        $(GTK_DEP_LIBS) \
        $(LDFLAGS)
+
+-include $(top_srcdir)/git.mk
index 5b8981932c5718a34808c26b1979ffd7f41d2c07..11d24238500bcc403812369308c17261c1ae94b4 100644 (file)
@@ -11,3 +11,5 @@ SUBDIRS += test
 endif
 
 DIST_SUBDIRS = cups file lpr test
+
+-include $(top_srcdir)/git.mk
index 22c0f349f39258fd2f956ae89085333afaeedcd8..463199e8292d7d65d4ac55edf5d09b54b32b3a62 100644 (file)
@@ -36,3 +36,5 @@ noinst_HEADERS =                      \
 
 libprintbackend_cups_la_LDFLAGS =  -avoid-version -module $(no_undefined)
 libprintbackend_cups_la_LIBADD = $(LDADDS) $(CUPS_LIBS)
+
+-include $(top_srcdir)/git.mk
index 3bc1407e06f7523288bbb8b24ca49719ddfa9ff3..904f7687d478e8c042ec9c4875c24aa43988f8db 100644 (file)
@@ -34,3 +34,5 @@ libprintbackend_file_la_LIBADD = \
 
 noinst_HEADERS =                       \
        gtkprintbackendfile.h
+
+-include $(top_srcdir)/git.mk
index fbe10afb39d36d826570f8eccae9fc215754b329..12b7fcefd678a5cea73b141b1bb8eb1680beed37 100644 (file)
@@ -30,3 +30,5 @@ noinst_HEADERS =                      \
 
 libprintbackend_lpr_la_LDFLAGS =  -avoid-version -module $(no_undefined)
 libprintbackend_lpr_la_LIBADD = $(LDADDS)
+
+-include $(top_srcdir)/git.mk
index fd0839e8265928ba8b7330aa2bb0c85070d998f9..20904fa517181e9ce56b63cb8b538149100b6bb1 100644 (file)
@@ -33,3 +33,5 @@ libprintbackend_test_la_LIBADD = \
 
 noinst_HEADERS =                       \
        gtkprintbackendtest.h
+
+-include $(top_srcdir)/git.mk
index 9fcf418951db5010dac9c36f83368eeb7c362cfb..934cf24da9e6f1e5078764d989a199a01701d28b 100644 (file)
@@ -96,3 +96,5 @@ distclean-local:
        if test $(srcdir) != .; then \
          rm -f $(MAINTAINERCLEANFILES); \
        fi
+
+-include $(top_srcdir)/git.mk
index 426dea30e934872015c2cc71716c1225d3999f32..924ac99842dc5e68ef27c5098dac5f0a2ce7a2af 100644 (file)
@@ -341,3 +341,5 @@ EXTRA_DIST +=                       \
        file-chooser-test-dir/empty \
        file-chooser-test-dir/text.txt
 
+
+-include $(top_srcdir)/git.mk