[pango] Add git.mk



commit 5016f4caab5ecaa3c6faf46746c19801a72e9f08
Author: Behdad Esfahbod <behdad behdad org>
Date:   Fri Apr 17 17:03:25 2009 -0400

    Add git.mk
---
 git.mk |   72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 72 insertions(+), 0 deletions(-)

diff --git a/git.mk b/git.mk
new file mode 100644
index 0000000..773b5d1
--- /dev/null
+++ b/git.mk
@@ -0,0 +1,72 @@
+
+git-all: gitignore-install
+
+gitignore-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 x$$any_failed = x
+
+.gitignore: Makefile.am $(top_srcdir)/git.mk
+	@echo Generating $@
+	@GTKDOCIGNOREFILES=; test "x$(DOC_MODULE)" = x || \
+	GTKDOCIGNOREFILES=" \
+		$(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt \
+		tmpl/$(DOC_MODULE)-unused.sgml tmpl/*.bak \
+		xml html"; \
+	for x in .gitignore \
+		$(GITIGNOREFILES) \
+		$$GTKDOCIGNOREFILES \
+		$(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" \
+		$(top_builddir)/config.h $(top_builddir)/stamp-h1 \
+		$(top_builddir)/libtool $(top_builddir)/config.lt \
+		$(MAINTAINERCLEANFILES) \
+		$(BUILT_SOURCES) \
+		$(DEPDIR) \
+		$(top_srcdir)/autom4te.cache \
+		Makefile \
+		Makefile.in \
+		$(top_srcdir)/configure \
+		$(top_srcdir)/gtk-doc.make \
+		$(top_srcdir)/git.mk \
+		"*.orig" "*.rej" "*.bak" "*~" \
+	; do echo /$$x; done | \
+	grep -v '/[.][.]/' | \
+	sed 's@/[.]/@/@g' | \
+	LANG=C sort | uniq > $  tmp && \
+	mv $  tmp $@
+
+Makefile.in: $(top_srcdir)/git.mk
+all: .gitignore
+maintainer-clean-local: gitignore-clean
+gitignore-clean:
+	rm -f .gitignore
+.PHONY: gitignore-clean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]