diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-04-17 17:03:25 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-04-17 17:39:11 -0400 |
commit | 5016f4caab5ecaa3c6faf46746c19801a72e9f08 (patch) | |
tree | be43906ab97bfd3cbf9b2f7c34f4f6c04c1aac37 /git.mk | |
parent | b712138ad9d1f0eebb5f1ecc48d89ead7abf4a9f (diff) | |
download | pango-5016f4caab5ecaa3c6faf46746c19801a72e9f08.tar.gz |
Add git.mk
Diffstat (limited to 'git.mk')
-rw-r--r-- | git.mk | 72 |
1 files changed, 72 insertions, 0 deletions
@@ -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 |