[gtk+] Add git.mk to generate .gitignore files
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Add git.mk to generate .gitignore files
- Date: Mon, 4 May 2009 14:29:37 -0400 (EDT)
commit a398c840be41102f170e79183a8bb9e8b6fa3a26
Author: Behdad Esfahbod <behdad behdad org>
Date: Sun May 3 20:08:11 2009 -0400
Add git.mk to generate .gitignore files
Add four new doc templates that were not in repository.
---
Makefile.am | 32 +++
contrib/Makefile.am | 2 +
contrib/gdk-pixbuf-xlib/Makefile.am | 2 +
demos/Makefile.am | 2 +
demos/gtk-demo/Makefile.am | 2 +
docs/Makefile.am | 2 +
docs/faq/Makefile.am | 2 +
docs/reference/Makefile.am | 3 +
docs/reference/gdk-pixbuf/Makefile.am | 2 +
docs/reference/gdk/Makefile.am | 2 +
docs/reference/gtk/Makefile.am | 2 +
docs/reference/gtk/tmpl/filesystem.sgml | 108 ++++++++++
docs/reference/gtk/tmpl/gtkactivatable.sgml | 100 +++++++++
docs/reference/gtk/tmpl/gtkimcontext.sgml | 212 ++++++++++++++++++++
docs/reference/gtk/tmpl/gtktoolshell.sgml | 82 ++++++++
docs/reference/libgail-util/Makefile.am | 2 +
docs/tools/Makefile.am | 2 +
docs/tutorial/Makefile.am | 2 +
gdk-pixbuf/Makefile.am | 2 +
gdk-pixbuf/pixops/Makefile.am | 2 +
gdk/Makefile.am | 2 +
gdk/directfb/Makefile.am | 2 +
gdk/quartz/Makefile.am | 2 +
gdk/tests/Makefile.am | 2 +
gdk/win32/Makefile.am | 2 +
gdk/win32/rc/Makefile.am | 2 +
gdk/x11/Makefile.am | 2 +
git.mk | 182 +++++++++++++++++
gtk/Makefile.am | 4 +-
gtk/tests/Makefile.am | 2 +
gtk/theme-bits/Makefile.am | 2 +
m4macros/Makefile.am | 2 +
modules/Makefile.am | 2 +
modules/engines/Makefile.am | 2 +
modules/engines/ms-windows/Makefile.am | 2 +
modules/engines/ms-windows/Theme/Makefile.am | 2 +
.../engines/ms-windows/Theme/gtk-2.0/Makefile.am | 2 +
modules/engines/pixbuf/Makefile.am | 2 +
modules/input/Makefile.am | 2 +
modules/other/Makefile.am | 2 +
modules/other/gail/Makefile.am | 2 +
modules/other/gail/libgail-util/Makefile.am | 2 +
modules/other/gail/tests/Makefile.am | 2 +
modules/printbackends/Makefile.am | 2 +
modules/printbackends/cups/Makefile.am | 2 +
modules/printbackends/file/Makefile.am | 2 +
modules/printbackends/lpr/Makefile.am | 2 +
modules/printbackends/test/Makefile.am | 2 +
perf/Makefile.am | 2 +
tests/Makefile.am | 2 +
50 files changed, 806 insertions(+), 1 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 7264d56..090c2fb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 3d2ba11..feb4bdb 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -4,3 +4,5 @@ SUBDIRS =
if USE_X11
SUBDIRS += gdk-pixbuf-xlib
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/contrib/gdk-pixbuf-xlib/Makefile.am b/contrib/gdk-pixbuf-xlib/Makefile.am
index 328bbe6..4b89e51 100644
--- a/contrib/gdk-pixbuf-xlib/Makefile.am
+++ b/contrib/gdk-pixbuf-xlib/Makefile.am
@@ -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
diff --git a/demos/Makefile.am b/demos/Makefile.am
index fd81954..c8c9bbb 100644
--- a/demos/Makefile.am
+++ b/demos/Makefile.am
@@ -82,3 +82,5 @@ EXTRA_DIST += \
gnu-keys.png
DISTCLEANFILES = test-inline-pixbufs.h
+
+-include $(top_srcdir)/git.mk
diff --git a/demos/gtk-demo/Makefile.am b/demos/gtk-demo/Makefile.am
index 46ebc03..e9c51d0 100644
--- a/demos/gtk-demo/Makefile.am
+++ b/demos/gtk-demo/Makefile.am
@@ -96,3 +96,5 @@ IMAGEFILES= alphatest.png \
democode_DATA = $(demos) $(IMAGEFILES) demo.ui
DISTCLEANFILES = demos.h
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 47f8030..515a7c1 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -19,3 +19,5 @@ EXTRA_DIST += \
generation.txt \
gtkdocs_fix \
RELEASE-HOWTO
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/faq/Makefile.am b/docs/faq/Makefile.am
index 5aebcd2..9bdaf12 100644
--- a/docs/faq/Makefile.am
+++ b/docs/faq/Makefile.am
@@ -38,3 +38,5 @@ dist-hook:
endif
.PHONY: html
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index f4d7451..f780c4f 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -3,3 +3,6 @@ include $(top_srcdir)/Makefile.decl
SUBDIRS = gdk-pixbuf gdk gtk libgail-util
+GITIGNOREFILES = */*.1
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/reference/gdk-pixbuf/Makefile.am b/docs/reference/gdk-pixbuf/Makefile.am
index 5beb925..7734e72 100644
--- a/docs/reference/gdk-pixbuf/Makefile.am
+++ b/docs/reference/gdk-pixbuf/Makefile.am
@@ -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
diff --git a/docs/reference/gdk/Makefile.am b/docs/reference/gdk/Makefile.am
index 28d7035..7e21e35 100644
--- a/docs/reference/gdk/Makefile.am
+++ b/docs/reference/gdk/Makefile.am
@@ -152,3 +152,5 @@ include $(top_srcdir)/gtk-doc.make
# Other files to distribute
EXTRA_DIST += version.xml.in
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/reference/gtk/Makefile.am b/docs/reference/gtk/Makefile.am
index 0c5e059..d7ffd71 100644
--- a/docs/reference/gtk/Makefile.am
+++ b/docs/reference/gtk/Makefile.am
@@ -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
index 0000000..15c9de5
--- /dev/null
+++ b/docs/reference/gtk/tmpl/filesystem.sgml
@@ -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
index 0000000..3911672
--- /dev/null
+++ b/docs/reference/gtk/tmpl/gtkactivatable.sgml
@@ -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
index 0000000..7257879
--- /dev/null
+++ b/docs/reference/gtk/tmpl/gtkimcontext.sgml
@@ -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
index 0000000..8e31f27
--- /dev/null
+++ b/docs/reference/gtk/tmpl/gtktoolshell.sgml
@@ -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:
+
+
diff --git a/docs/reference/libgail-util/Makefile.am b/docs/reference/libgail-util/Makefile.am
index 92bdbd8..e6b4bb9 100644
--- a/docs/reference/libgail-util/Makefile.am
+++ b/docs/reference/libgail-util/Makefile.am
@@ -32,3 +32,5 @@ content_files =
HTML_IMAGES =
include $(top_srcdir)/gtk-doc.make
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/tools/Makefile.am b/docs/tools/Makefile.am
index 4b78142..3b3c09b 100644
--- a/docs/tools/Makefile.am
+++ b/docs/tools/Makefile.am
@@ -40,3 +40,5 @@ clean-local:
*) rm -f $$file ;; \
esac ; \
done
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/tutorial/Makefile.am b/docs/tutorial/Makefile.am
index 43e6c24..5448bd2 100644
--- a/docs/tutorial/Makefile.am
+++ b/docs/tutorial/Makefile.am
@@ -72,3 +72,5 @@ dist-hook:
echo "***"
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/gdk-pixbuf/Makefile.am b/gdk-pixbuf/Makefile.am
index c1ac554..39b52f3 100644
--- a/gdk-pixbuf/Makefile.am
+++ b/gdk-pixbuf/Makefile.am
@@ -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
diff --git a/gdk-pixbuf/pixops/Makefile.am b/gdk-pixbuf/pixops/Makefile.am
index e4c4e26..fe7775a 100644
--- a/gdk-pixbuf/pixops/Makefile.am
+++ b/gdk-pixbuf/pixops/Makefile.am
@@ -30,3 +30,5 @@ EXTRA_DIST += \
DETAILS \
pixbuf-transform-math.ltx \
makefile.msc
+
+-include $(top_srcdir)/git.mk
diff --git a/gdk/Makefile.am b/gdk/Makefile.am
index cc0ae0d..52a5bf0 100644
--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@ -303,3 +303,5 @@ files:
@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
echo $$p; \
done
+
+-include $(top_srcdir)/git.mk
diff --git a/gdk/directfb/Makefile.am b/gdk/directfb/Makefile.am
index e7b7966..867f470 100644
--- a/gdk/directfb/Makefile.am
+++ b/gdk/directfb/Makefile.am
@@ -56,3 +56,5 @@ libgdkinclude_HEADERS = \
EXTRA_DIST += AUTHORS README TODO
+
+-include $(top_srcdir)/git.mk
diff --git a/gdk/quartz/Makefile.am b/gdk/quartz/Makefile.am
index 2e2fbc8..2c3e621 100644
--- a/gdk/quartz/Makefile.am
+++ b/gdk/quartz/Makefile.am
@@ -57,3 +57,5 @@ libgdk_quartz_la_SOURCES = \
libgdkinclude_HEADERS = \
gdkquartz.h
+
+-include $(top_srcdir)/git.mk
diff --git a/gdk/tests/Makefile.am b/gdk/tests/Makefile.am
index 7417229..423a353 100644
--- a/gdk/tests/Makefile.am
+++ b/gdk/tests/Makefile.am
@@ -25,3 +25,5 @@ check_gdk_cairo_LDADD=\
CLEANFILES = \
cairosurface.png \
gdksurface.png
+
+-include $(top_srcdir)/git.mk
diff --git a/gdk/win32/Makefile.am b/gdk/win32/Makefile.am
index 02f8c2f..17d048e 100644
--- a/gdk/win32/Makefile.am
+++ b/gdk/win32/Makefile.am
@@ -63,3 +63,5 @@ libgdk_win32_la_SOURCES = \
libgdkinclude_HEADERS = \
gdkwin32.h
+
+-include $(top_srcdir)/git.mk
diff --git a/gdk/win32/rc/Makefile.am b/gdk/win32/rc/Makefile.am
index 4253b5a..9171923 100644
--- a/gdk/win32/rc/Makefile.am
+++ b/gdk/win32/rc/Makefile.am
@@ -11,3 +11,5 @@ endif
gdk-win32-res.o : gdk.rc gtk.ico
$(WINDRES) gdk.rc $@
+
+-include $(top_srcdir)/git.mk
diff --git a/gdk/x11/Makefile.am b/gdk/x11/Makefile.am
index 0b6d5ec..5d41ec8 100644
--- a/gdk/x11/Makefile.am
+++ b/gdk/x11/Makefile.am
@@ -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
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
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 2339a86..a0dc9a9 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -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
diff --git a/gtk/tests/Makefile.am b/gtk/tests/Makefile.am
index f36d5e5..4c8ff1f 100644
--- a/gtk/tests/Makefile.am
+++ b/gtk/tests/Makefile.am
@@ -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
diff --git a/gtk/theme-bits/Makefile.am b/gtk/theme-bits/Makefile.am
index eb24bfc..4ad0497 100644
--- a/gtk/theme-bits/Makefile.am
+++ b/gtk/theme-bits/Makefile.am
@@ -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
diff --git a/m4macros/Makefile.am b/m4macros/Makefile.am
index ad797d8..82cd07e 100644
--- a/m4macros/Makefile.am
+++ b/m4macros/Makefile.am
@@ -6,3 +6,5 @@ EXTRA_DIST += $(installed_m4)
m4datadir = $(datadir)/aclocal
m4data_DATA = $(installed_m4)
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/Makefile.am b/modules/Makefile.am
index 86a89af..40d5fa5 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -5,3 +5,5 @@ SUBDIRS = input engines other
if OS_UNIX
SUBDIRS += printbackends
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/engines/Makefile.am b/modules/engines/Makefile.am
index eb8a899..7f65239 100644
--- a/modules/engines/Makefile.am
+++ b/modules/engines/Makefile.am
@@ -5,3 +5,5 @@ wimp = ms-windows
endif
SUBDIRS = $(wimp) pixbuf
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/engines/ms-windows/Makefile.am b/modules/engines/ms-windows/Makefile.am
index 975d061..541bf9e 100644
--- a/modules/engines/ms-windows/Makefile.am
+++ b/modules/engines/ms-windows/Makefile.am
@@ -36,3 +36,5 @@ libwimp_la_LDFLAGS = \
-avoid-version -module -no-undefined -export-dynamic
libwimp_la_LIBADD = $(LDADDS) -lgdi32
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/engines/ms-windows/Theme/Makefile.am b/modules/engines/ms-windows/Theme/Makefile.am
index 59f4176..e7fad20 100644
--- a/modules/engines/ms-windows/Theme/Makefile.am
+++ b/modules/engines/ms-windows/Theme/Makefile.am
@@ -1,3 +1,5 @@
include $(top_srcdir)/Makefile.decl
SUBDIRS=gtk-2.0
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am b/modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am
index 8957184..a03371f 100644
--- a/modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am
+++ b/modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am
@@ -4,3 +4,5 @@ themedir = $(datadir)/themes/MS-Windows/gtk-2.0
theme_DATA=gtkrc
EXTRA_DIST += $(theme_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/engines/pixbuf/Makefile.am b/modules/engines/pixbuf/Makefile.am
index df50cba..f90bdd5 100644
--- a/modules/engines/pixbuf/Makefile.am
+++ b/modules/engines/pixbuf/Makefile.am
@@ -33,3 +33,5 @@ libpixmap_la_SOURCES = \
libpixmap_la_LDFLAGS = -avoid-version -module $(no_undefined)
libpixmap_la_LIBADD = $(LDADDS)
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/input/Makefile.am b/modules/input/Makefile.am
index 0613d04..9a1bf2e 100644
--- a/modules/input/Makefile.am
+++ b/modules/input/Makefile.am
@@ -248,3 +248,5 @@ if CROSS_COMPILING
else
all-local: gtk.immodules
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/other/Makefile.am b/modules/other/Makefile.am
index a4fd2c9..5b647d6 100644
--- a/modules/other/Makefile.am
+++ b/modules/other/Makefile.am
@@ -1,3 +1,5 @@
include $(top_srcdir)/Makefile.decl
SUBDIRS = gail
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/other/gail/Makefile.am b/modules/other/gail/Makefile.am
index 24d0d58..6ffe591 100644
--- a/modules/other/gail/Makefile.am
+++ b/modules/other/gail/Makefile.am
@@ -168,3 +168,5 @@ libgail_la_LDFLAGS = \
-rpath $(moduledir) -module -avoid-version \
$(no_undefined) \
$(LDFLAGS)
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/other/gail/libgail-util/Makefile.am b/modules/other/gail/libgail-util/Makefile.am
index 856a6c0..3145719 100644
--- a/modules/other/gail/libgail-util/Makefile.am
+++ b/modules/other/gail/libgail-util/Makefile.am
@@ -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
diff --git a/modules/other/gail/tests/Makefile.am b/modules/other/gail/tests/Makefile.am
index aaa6389..9932495 100644
--- a/modules/other/gail/tests/Makefile.am
+++ b/modules/other/gail/tests/Makefile.am
@@ -269,3 +269,5 @@ libtestvalues_la_LDFLAGS = \
$(top_builddir)/gdk/$(gdktargetlib) \
$(GTK_DEP_LIBS) \
$(LDFLAGS)
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/printbackends/Makefile.am b/modules/printbackends/Makefile.am
index 5b89819..11d2423 100644
--- a/modules/printbackends/Makefile.am
+++ b/modules/printbackends/Makefile.am
@@ -11,3 +11,5 @@ SUBDIRS += test
endif
DIST_SUBDIRS = cups file lpr test
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/printbackends/cups/Makefile.am b/modules/printbackends/cups/Makefile.am
index 22c0f34..463199e 100644
--- a/modules/printbackends/cups/Makefile.am
+++ b/modules/printbackends/cups/Makefile.am
@@ -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
diff --git a/modules/printbackends/file/Makefile.am b/modules/printbackends/file/Makefile.am
index 3bc1407..904f768 100644
--- a/modules/printbackends/file/Makefile.am
+++ b/modules/printbackends/file/Makefile.am
@@ -34,3 +34,5 @@ libprintbackend_file_la_LIBADD = \
noinst_HEADERS = \
gtkprintbackendfile.h
+
+-include $(top_srcdir)/git.mk
diff --git a/modules/printbackends/lpr/Makefile.am b/modules/printbackends/lpr/Makefile.am
index fbe10af..12b7fce 100644
--- a/modules/printbackends/lpr/Makefile.am
+++ b/modules/printbackends/lpr/Makefile.am
@@ -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
diff --git a/modules/printbackends/test/Makefile.am b/modules/printbackends/test/Makefile.am
index fd0839e..20904fa 100644
--- a/modules/printbackends/test/Makefile.am
+++ b/modules/printbackends/test/Makefile.am
@@ -33,3 +33,5 @@ libprintbackend_test_la_LIBADD = \
noinst_HEADERS = \
gtkprintbackendtest.h
+
+-include $(top_srcdir)/git.mk
diff --git a/perf/Makefile.am b/perf/Makefile.am
index 9fcf418..934cf24 100644
--- a/perf/Makefile.am
+++ b/perf/Makefile.am
@@ -96,3 +96,5 @@ distclean-local:
if test $(srcdir) != .; then \
rm -f $(MAINTAINERCLEANFILES); \
fi
+
+-include $(top_srcdir)/git.mk
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 426dea3..924ac99 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -341,3 +341,5 @@ EXTRA_DIST += \
file-chooser-test-dir/empty \
file-chooser-test-dir/text.txt
+
+-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]