summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Ferretti <elle.uca@libero.it>2009-09-02 00:05:09 +0200
committerLuca Ferretti <elle.uca@libero.it>2009-09-02 00:05:09 +0200
commitb19c7725825d6ed8b64263096f252691266eb0d8 (patch)
tree445101438a371ae5c41b30db5b6091c9d1685d63
parent2234307c31d0bc479b9c9415374ab2608ff7f5f2 (diff)
Add Behdad's git.mk to autogenerate .gitignore
-rw-r--r--Makefile.am2
-rw-r--r--accessx-status/Makefile.am2
-rw-r--r--accessx-status/docs/Makefile.am2
-rw-r--r--accessx-status/pixmaps/Makefile.am2
-rw-r--r--battstat/Makefile.am2
-rw-r--r--battstat/apmlib/Makefile.am2
-rw-r--r--battstat/docs/Makefile.am2
-rw-r--r--battstat/sounds/Makefile.am2
-rw-r--r--charpick/Makefile.am2
-rw-r--r--charpick/help/Makefile.am2
-rw-r--r--cpufreq/Makefile.am2
-rw-r--r--cpufreq/help/Makefile.am2
-rw-r--r--cpufreq/pixmaps/Makefile.am2
-rw-r--r--cpufreq/src/Makefile.am2
-rw-r--r--cpufreq/src/cpufreq-selector/Makefile.am2
-rw-r--r--drivemount/Makefile.am2
-rw-r--r--drivemount/help/Makefile.am2
-rw-r--r--geyes/Makefile.am2
-rw-r--r--geyes/docs/Makefile.am2
-rw-r--r--geyes/themes/Makefile.am2
-rw-r--r--git.mk183
-rw-r--r--gkb-new/Makefile.am2
-rw-r--r--gkb-new/xmodmap.sun/Makefile.am2
-rw-r--r--gkb-new/xmodmap/Makefile.am2
-rw-r--r--gswitchit/Makefile.am2
-rw-r--r--gswitchit/help/Makefile.am2
-rw-r--r--gweather/Makefile.am2
-rw-r--r--gweather/docs/Makefile.am2
-rw-r--r--invest-applet/Makefile.am2
-rw-r--r--invest-applet/data/Makefile.am2
-rw-r--r--invest-applet/data/art/Makefile.am2
-rw-r--r--invest-applet/docs/Makefile.am2
-rw-r--r--invest-applet/invest/Makefile.am2
-rw-r--r--man/Makefile.am2
-rw-r--r--mini-commander/Makefile.am2
-rw-r--r--mini-commander/help/Makefile.am2
-rw-r--r--mini-commander/src/Makefile.am2
-rw-r--r--mixer/Makefile.am2
-rw-r--r--mixer/docs/Makefile.am2
-rw-r--r--modemlights/Makefile.am2
-rw-r--r--multiload/Makefile.am2
-rw-r--r--multiload/docs/Makefile.am2
-rw-r--r--null_applet/Makefile.am2
-rw-r--r--stickynotes/Makefile.am2
-rw-r--r--stickynotes/data/Makefile.am2
-rw-r--r--stickynotes/docs/Makefile.am2
-rw-r--r--stickynotes/pixmaps/Makefile.am2
-rw-r--r--trashapplet/Makefile.am2
-rw-r--r--trashapplet/docs/Makefile.am2
-rw-r--r--trashapplet/src/Makefile.am2
50 files changed, 281 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index a048679b1..4cb2bc305 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -125,3 +125,5 @@ DISTCLEANFILES = intltool-extract \
intltool-merge \
intltool-update \
gnome-doc-utils.make
+
+-include $(top_srcdir)/git.mk
diff --git a/accessx-status/Makefile.am b/accessx-status/Makefile.am
index 579bd7189..3fd984204 100644
--- a/accessx-status/Makefile.am
+++ b/accessx-status/Makefile.am
@@ -34,3 +34,5 @@ EXTRA_DIST = \
GNOME_AccessxStatusApplet.server.in.in \
$(ui_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/accessx-status/docs/Makefile.am b/accessx-status/docs/Makefile.am
index 761daa3b2..54394cee3 100644
--- a/accessx-status/docs/Makefile.am
+++ b/accessx-status/docs/Makefile.am
@@ -17,3 +17,5 @@ DOC_FIGURES = figures/accessx_bounce-keys.png \
figures/accessx_sticky-windows-key.png
DOC_LINGUAS = bg ca cs de el en_GB es eu fi fr it ko nl oc sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/accessx-status/pixmaps/Makefile.am b/accessx-status/pixmaps/Makefile.am
index 1496a14ab..2993bd453 100644
--- a/accessx-status/pixmaps/Makefile.am
+++ b/accessx-status/pixmaps/Makefile.am
@@ -54,3 +54,5 @@ update-icon-cache:
EXTRA_DIST = \
$(accessx_status_pixmaps_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/battstat/Makefile.am b/battstat/Makefile.am
index 6ab84bf2a..2c107a798 100644
--- a/battstat/Makefile.am
+++ b/battstat/Makefile.am
@@ -89,3 +89,5 @@ EXTRA_DIST = \
@INTLTOOL_SERVER_RULE@
+
+-include $(top_srcdir)/git.mk
diff --git a/battstat/apmlib/Makefile.am b/battstat/apmlib/Makefile.am
index 645adc184..5a242309e 100644
--- a/battstat/apmlib/Makefile.am
+++ b/battstat/apmlib/Makefile.am
@@ -14,3 +14,5 @@ noinst_LIBRARIES = libapm.a
libapm_a_SOURCES = apmlib.c apm.h
+
+-include $(top_srcdir)/git.mk
diff --git a/battstat/docs/Makefile.am b/battstat/docs/Makefile.am
index e7cff2c3c..bfdf2aca0 100644
--- a/battstat/docs/Makefile.am
+++ b/battstat/docs/Makefile.am
@@ -11,3 +11,5 @@ DOC_FIGURES = figures/battstat-applet-expanded.png \
figures/context-menu.png
DOC_LINGUAS = ca cs bg de el en_GB es eu fi fr ko oc pa pt_BR sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/battstat/sounds/Makefile.am b/battstat/sounds/Makefile.am
index f6e555d89..99b8c8808 100644
--- a/battstat/sounds/Makefile.am
+++ b/battstat/sounds/Makefile.am
@@ -8,3 +8,5 @@ soundlist_DATA = $(soundlist_in_files:.soundlist.in=.soundlist)
EXTRA_DIST = $(soundlist_DATA) $(soundlist_in_files)
CLEANFILES = $(soundlist_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/charpick/Makefile.am b/charpick/Makefile.am
index c1c7fe865..d71a6df30 100644
--- a/charpick/Makefile.am
+++ b/charpick/Makefile.am
@@ -46,3 +46,5 @@ if GCONF_SCHEMAS_INSTALL
install-data-local:
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schemas_DATA) ;
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/charpick/help/Makefile.am b/charpick/help/Makefile.am
index 424018491..6384250ce 100644
--- a/charpick/help/Makefile.am
+++ b/charpick/help/Makefile.am
@@ -10,3 +10,5 @@ DOC_FIGURES = figures/charpalette_applet.png \
figures/charpick-preferences.png
DOC_LINGUAS = bg ca cs de el en_GB es eu fi fr it ko nl oc pt_BR ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/cpufreq/Makefile.am b/cpufreq/Makefile.am
index 050edd862..fec1afbcb 100644
--- a/cpufreq/Makefile.am
+++ b/cpufreq/Makefile.am
@@ -41,3 +41,5 @@ EXTRA_DIST = \
+
+-include $(top_srcdir)/git.mk
diff --git a/cpufreq/help/Makefile.am b/cpufreq/help/Makefile.am
index 254385fe3..933d8bf29 100644
--- a/cpufreq/help/Makefile.am
+++ b/cpufreq/help/Makefile.am
@@ -15,3 +15,5 @@ DOC_FIGURES = figures/cpufreq-100.png \
figures/cpufreq-applet-selector.png
DOC_LINGUAS = ca cs de el en_GB es eu fi fr nl oc pt_BR ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/cpufreq/pixmaps/Makefile.am b/cpufreq/pixmaps/Makefile.am
index 6d97db00e..fc8f7aa40 100644
--- a/cpufreq/pixmaps/Makefile.am
+++ b/cpufreq/pixmaps/Makefile.am
@@ -60,3 +60,5 @@ install-data-local:
echo "*** Icon cache not updated. After install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
+
+-include $(top_srcdir)/git.mk
diff --git a/cpufreq/src/Makefile.am b/cpufreq/src/Makefile.am
index 9b82538e5..4d51e42a8 100644
--- a/cpufreq/src/Makefile.am
+++ b/cpufreq/src/Makefile.am
@@ -35,3 +35,5 @@ cpufreq_applet_LDADD = \
$(LIBCPUFREQ_LIBS)
+
+-include $(top_srcdir)/git.mk
diff --git a/cpufreq/src/cpufreq-selector/Makefile.am b/cpufreq/src/cpufreq-selector/Makefile.am
index dc9cf739e..e3c975c69 100644
--- a/cpufreq/src/cpufreq-selector/Makefile.am
+++ b/cpufreq/src/cpufreq-selector/Makefile.am
@@ -85,3 +85,5 @@ CLEANFILES = \
$(BUILT_SOURCES) \
$(dbus_services_DATA) \
$(polkit_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/drivemount/Makefile.am b/drivemount/Makefile.am
index 8e45c20b8..60a299c01 100644
--- a/drivemount/Makefile.am
+++ b/drivemount/Makefile.am
@@ -54,3 +54,5 @@ install-data-local:
else
install-data-local:
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/drivemount/help/Makefile.am b/drivemount/help/Makefile.am
index 7de4611fb..4373b7b21 100644
--- a/drivemount/help/Makefile.am
+++ b/drivemount/help/Makefile.am
@@ -11,3 +11,5 @@ DOC_FIGURES = figures/drivemount-applet_eject.png \
figures/drivemount-applet_status.png
DOC_LINGUAS = ca cs de el en_GB es eu fi fr it ko oc pa ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/geyes/Makefile.am b/geyes/Makefile.am
index 6e19b95bb..2303b2446 100644
--- a/geyes/Makefile.am
+++ b/geyes/Makefile.am
@@ -100,3 +100,5 @@ install-data-local:
if GCONF_SCHEMAS_INSTALL
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schemas_DATA) ;
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/geyes/docs/Makefile.am b/geyes/docs/Makefile.am
index dc220636f..6619c2784 100644
--- a/geyes/docs/Makefile.am
+++ b/geyes/docs/Makefile.am
@@ -7,3 +7,5 @@ DOC_ENTITIES = legal.xml
DOC_FIGURES = figures/geyes_applet.png
DOC_LINGUAS = bg ca cs da de el en_GB es eu fi fr it ko oc ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/geyes/themes/Makefile.am b/geyes/themes/Makefile.am
index 96745e87b..fb10b23fb 100644
--- a/geyes/themes/Makefile.am
+++ b/geyes/themes/Makefile.am
@@ -32,3 +32,5 @@ Horrid_DATA = Horrid/config \
EXTRA_DIST = $(Default_DATA) $(Default_tiny_DATA) $(Bizarre_DATA) $(Bloodshot_DATA) \
$(Horrid_DATA) $(Tango_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/git.mk b/git.mk
new file mode 100644
index 000000000..d88d40930
--- /dev/null
+++ b/git.mk
@@ -0,0 +1,183 @@
+# 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) \
+ $(check_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 || echo "Skipping $$subdir"); \
+ 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/gkb-new/Makefile.am b/gkb-new/Makefile.am
index c7085b1b6..236557ff5 100644
--- a/gkb-new/Makefile.am
+++ b/gkb-new/Makefile.am
@@ -5,3 +5,5 @@ gkb_DDIRS= xmodmap
endif
SUBDIRS= $(gkb_DDIRS)
+
+-include $(top_srcdir)/git.mk
diff --git a/gkb-new/xmodmap.sun/Makefile.am b/gkb-new/xmodmap.sun/Makefile.am
index 0f0f0f087..7c051dc2a 100644
--- a/gkb-new/xmodmap.sun/Makefile.am
+++ b/gkb-new/xmodmap.sun/Makefile.am
@@ -70,3 +70,5 @@ XMM_XML = $(xmm_xml_in_file:.xml.in=.xml)
%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po)
$(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u \
-c $(top_srcdir)/po/.intltool-merge-cache
+
+-include $(top_srcdir)/git.mk
diff --git a/gkb-new/xmodmap/Makefile.am b/gkb-new/xmodmap/Makefile.am
index 58c90cf41..dfcca2c41 100644
--- a/gkb-new/xmodmap/Makefile.am
+++ b/gkb-new/xmodmap/Makefile.am
@@ -32,3 +32,5 @@ XMM_XML = $(xmm_xml_in_file:.xml.in=.xml)
-c $(top_srcdir)/po/.intltool-merge-cache
CLEANFILES = base.xml
+
+-include $(top_srcdir)/git.mk
diff --git a/gswitchit/Makefile.am b/gswitchit/Makefile.am
index 3d040151e..5b60ce38f 100644
--- a/gswitchit/Makefile.am
+++ b/gswitchit/Makefile.am
@@ -57,3 +57,5 @@ ui_DATA = GNOME_GSwitchItApplet.xml
builder_DATA = gswitchit.ui
+
+-include $(top_srcdir)/git.mk
diff --git a/gswitchit/help/Makefile.am b/gswitchit/help/Makefile.am
index 8416b1ad6..212cb0aec 100644
--- a/gswitchit/help/Makefile.am
+++ b/gswitchit/help/Makefile.am
@@ -5,3 +5,5 @@ DOC_MODULE = gswitchit
DOC_ENTITIES = legal.xml
DOC_LINGUAS = ca cs de el en_GB es eu fi fr oc ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/gweather/Makefile.am b/gweather/Makefile.am
index 832b02b4e..9eba0b37b 100644
--- a/gweather/Makefile.am
+++ b/gweather/Makefile.am
@@ -45,3 +45,5 @@ EXTRA_DIST = \
$(ui_DATA)
@INTLTOOL_SERVER_RULE@
+
+-include $(top_srcdir)/git.mk
diff --git a/gweather/docs/Makefile.am b/gweather/docs/Makefile.am
index bb1ff62eb..6654f1737 100644
--- a/gweather/docs/Makefile.am
+++ b/gweather/docs/Makefile.am
@@ -20,3 +20,5 @@ DOC_FIGURES = figures/gweather_applet.png \
figures/stock_weather-sunny.png
DOC_LINGUAS = ar ca cs de el en_GB es eu fi fr ko nl oc pa pt_BR ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/invest-applet/Makefile.am b/invest-applet/Makefile.am
index 58d89e858..13f7ce1bf 100644
--- a/invest-applet/Makefile.am
+++ b/invest-applet/Makefile.am
@@ -1 +1,3 @@
SUBDIRS = invest data docs
+
+-include $(top_srcdir)/git.mk
diff --git a/invest-applet/data/Makefile.am b/invest-applet/data/Makefile.am
index 693855c53..9a31989f5 100644
--- a/invest-applet/data/Makefile.am
+++ b/invest-applet/data/Makefile.am
@@ -54,3 +54,5 @@ EXTRA_DIST = \
GNOME_GtikApplet.server \
$(ui_DATA) \
$(builder_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/invest-applet/data/art/Makefile.am b/invest-applet/data/art/Makefile.am
index c88fcdf9b..7f304f4ad 100644
--- a/invest-applet/data/art/Makefile.am
+++ b/invest-applet/data/art/Makefile.am
@@ -55,3 +55,5 @@ EXTRA_DIST = \
$(icons) \
$(art_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/invest-applet/docs/Makefile.am b/invest-applet/docs/Makefile.am
index 4c2e3fbf0..f2c12278e 100644
--- a/invest-applet/docs/Makefile.am
+++ b/invest-applet/docs/Makefile.am
@@ -7,3 +7,5 @@ DOC_ENTITIES = legal.xml
DOC_FIGURES =
DOC_LINGUAS = ca de el en_GB es fi ru sv zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/invest-applet/invest/Makefile.am b/invest-applet/invest/Makefile.am
index 2ee11c1e5..c8917931d 100644
--- a/invest-applet/invest/Makefile.am
+++ b/invest-applet/invest/Makefile.am
@@ -34,3 +34,5 @@ EXTRA_DIST = \
test.py
TESTS = test.py
+
+-include $(top_srcdir)/git.mk
diff --git a/man/Makefile.am b/man/Makefile.am
index b26b3d0b6..d8bd9c122 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -15,3 +15,5 @@ man_MANS = \
whereami_applet.1
EXTRA_DIST = $(man_MANS)
+
+-include $(top_srcdir)/git.mk
diff --git a/mini-commander/Makefile.am b/mini-commander/Makefile.am
index 7cd73222c..8aeda4a2b 100644
--- a/mini-commander/Makefile.am
+++ b/mini-commander/Makefile.am
@@ -20,3 +20,5 @@ endif
EXTRA_DIST = $(server_in_files)
+
+-include $(top_srcdir)/git.mk
diff --git a/mini-commander/help/Makefile.am b/mini-commander/help/Makefile.am
index 332450341..cce1cad6f 100644
--- a/mini-commander/help/Makefile.am
+++ b/mini-commander/help/Makefile.am
@@ -9,3 +9,5 @@ DOC_FIGURES = figures/command-line.png \
figures/prefs.png
DOC_LINGUAS = ca de el en_GB es eu fr ko oc pt_BR sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/mini-commander/src/Makefile.am b/mini-commander/src/Makefile.am
index b42040692..87c9baa31 100644
--- a/mini-commander/src/Makefile.am
+++ b/mini-commander/src/Makefile.am
@@ -99,3 +99,5 @@ EXTRA_DIST = \
$(ui_DATA) \
$(builder_DATA) \
$(schemas_in_files)
+
+-include $(top_srcdir)/git.mk
diff --git a/mixer/Makefile.am b/mixer/Makefile.am
index 7546ef89a..4a86951db 100644
--- a/mixer/Makefile.am
+++ b/mixer/Makefile.am
@@ -55,3 +55,5 @@ if GCONF_SCHEMAS_INSTALL
install-data-local:
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schemas_DATA) ;
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/mixer/docs/Makefile.am b/mixer/docs/Makefile.am
index 9d39b9954..655bd1828 100644
--- a/mixer/docs/Makefile.am
+++ b/mixer/docs/Makefile.am
@@ -7,3 +7,5 @@ DOC_ENTITIES = legal.xml
DOC_FIGURES = figures/volumecontrol_applet.png
DOC_LINGUAS = ca cs de el en_GB es eu fi fr hu it ko oc pa pt_BR ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/modemlights/Makefile.am b/modemlights/Makefile.am
index 2d27181e6..29b02cebb 100644
--- a/modemlights/Makefile.am
+++ b/modemlights/Makefile.am
@@ -85,3 +85,5 @@ install-data-local:
echo "*** Icon cache not updated. After install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
+
+-include $(top_srcdir)/git.mk
diff --git a/multiload/Makefile.am b/multiload/Makefile.am
index d728edcd1..ac028ab34 100644
--- a/multiload/Makefile.am
+++ b/multiload/Makefile.am
@@ -56,3 +56,5 @@ if GCONF_SCHEMAS_INSTALL
install-data-local:
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schemas_DATA) ;
endif
+
+-include $(top_srcdir)/git.mk
diff --git a/multiload/docs/Makefile.am b/multiload/docs/Makefile.am
index 07ba5b185..31c8b68ca 100644
--- a/multiload/docs/Makefile.am
+++ b/multiload/docs/Makefile.am
@@ -9,3 +9,5 @@ DOC_FIGURES = figures/multiload-preferences.png \
figures/system_monitor.png
DOC_LINGUAS = ca cs de el en_GB es eu fi fr ko oc pa pt_BR ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/null_applet/Makefile.am b/null_applet/Makefile.am
index d2047f80d..b66f10fad 100644
--- a/null_applet/Makefile.am
+++ b/null_applet/Makefile.am
@@ -38,3 +38,5 @@ EXTRA_DIST = \
GNOME_MailcheckApplet_Factory.server.in \
GNOME_Panel_WirelessApplet.server.in \
GNOME_MixerApplet.server.in
+
+-include $(top_srcdir)/git.mk
diff --git a/stickynotes/Makefile.am b/stickynotes/Makefile.am
index d356f3594..76eee2131 100644
--- a/stickynotes/Makefile.am
+++ b/stickynotes/Makefile.am
@@ -70,3 +70,5 @@ EXTRA_DIST = \
$(schemas_in_files) \
GNOME_StickyNotesApplet.server.in.in
+
+-include $(top_srcdir)/git.mk
diff --git a/stickynotes/data/Makefile.am b/stickynotes/data/Makefile.am
index 1ea42d8f6..8abe99f02 100644
--- a/stickynotes/data/Makefile.am
+++ b/stickynotes/data/Makefile.am
@@ -15,3 +15,5 @@ CLEANFILES = $(server_DATA)
endif
EXTRA_DIST = $(server_in_files)
+
+-include $(top_srcdir)/git.mk
diff --git a/stickynotes/docs/Makefile.am b/stickynotes/docs/Makefile.am
index 49666df1a..6c953653a 100644
--- a/stickynotes/docs/Makefile.am
+++ b/stickynotes/docs/Makefile.am
@@ -11,3 +11,5 @@ DOC_FIGURES = figures/stickynote-right-menu-lock.png \
figures/stickynotes-prefs.png
DOC_LINGUAS = ca cs de el en_GB es eu fi fr ko oc pa pt_BR ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/stickynotes/pixmaps/Makefile.am b/stickynotes/pixmaps/Makefile.am
index 71be4386a..2a1014a51 100644
--- a/stickynotes/pixmaps/Makefile.am
+++ b/stickynotes/pixmaps/Makefile.am
@@ -61,3 +61,5 @@ install-data-local:
echo "*** Icon cache not updated. After install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
+
+-include $(top_srcdir)/git.mk
diff --git a/trashapplet/Makefile.am b/trashapplet/Makefile.am
index 49ff0d6db..8081d06c4 100644
--- a/trashapplet/Makefile.am
+++ b/trashapplet/Makefile.am
@@ -20,3 +20,5 @@ EXTRA_DIST = \
$(builder_DATA)
CLEANFILES = $(server_in_files) $(server_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/trashapplet/docs/Makefile.am b/trashapplet/docs/Makefile.am
index 518cb3dc2..dd94f9545 100644
--- a/trashapplet/docs/Makefile.am
+++ b/trashapplet/docs/Makefile.am
@@ -7,3 +7,5 @@ DOC_ENTITIES = legal.xml
DOC_FIGURES = figures/trash-applet.png
DOC_LINGUAS = ca cs da de el en_GB es eu fi fr hu it nl oc pa pt_BR ru sv uk zh_CN
+
+-include $(top_srcdir)/git.mk
diff --git a/trashapplet/src/Makefile.am b/trashapplet/src/Makefile.am
index 426c53a4c..ae3182aaf 100644
--- a/trashapplet/src/Makefile.am
+++ b/trashapplet/src/Makefile.am
@@ -16,3 +16,5 @@ trashapplet_LDADD = \
$(GNOME_APPLETS_LIBS) \
$(GNOME_LIBS2_LIBS) \
$(GIO_LIBS)
+
+-include $(top_srcdir)/git.mk