[vte] [git.mk] Support out-of-tree builds



commit 3abb0fc2a7011eeadc7e1f49a3f07d9cec4f5c8a
Author: Behdad Esfahbod <behdad behdad org>
Date:   Sat Apr 18 16:20:23 2009 -0400

    [git.mk] Support out-of-tree builds
---
 git.mk |   35 +++++++++++++++++++++++++++++------
 1 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/git.mk b/git.mk
index ff03622..9cfce1c 100644
--- a/git.mk
+++ b/git.mk
@@ -1,8 +1,12 @@
 # git.mk
 #
-# Use as you wish.  Copyright not claimed.
+# 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.
 #
@@ -35,6 +39,9 @@
 # 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:
 #
@@ -74,9 +81,10 @@ git-mk-install:
 
 ### .gitignore generation
 
-.gitignore: Makefile.am $(top_srcdir)/git.mk
+$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
 	@echo Generating $@; \
-	GTKDOCGITIGNOREFILES=; test "x$(DOC_MODULE)" = x || \
+	GTKDOCGITIGNOREFILES=; \
+	test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x || \
 	GTKDOCGITIGNOREFILES=" \
 		$(DOC_MODULE)-decl-list.txt \
 		$(DOC_MODULE)-decl.txt \
@@ -84,6 +92,18 @@ git-mk-install:
 		tmpl/*.bak \
 		xml html \
 		"; \
+	GNOMEDOCUTILSGITIGNOREFILES=; \
+	test "x$(DOC_MODULE)" = x -o "x$(DOC_LINGUAS)" = x || \
+	GNOMEDOCUTILSGITIGNOREFILES=" \
+		$(_DOC_C_DOCS) \
+		$(_DOC_LC_DOCS) \
+		$(_DOC_OMF_ALL) \
+		$(_DOC_DSK_ALL) \
+		$(_DOC_HTML_ALL) \
+		$(_DOC_POFILES) \
+		*/.xml2po.mo \
+		*/*.omf.out \
+		"; \
 	INTLTOOLGITIGNOREFILES=; test -f $(srcdir)/po/Makefile.in.in && \
 	INTLTOOLGITIGNOREFILES=" \
 		po/Makefile.in.in \
@@ -93,6 +113,7 @@ git-mk-install:
 		po/*.mo \
 		po/POTFILES \
 		po/stamp-it \
+		po/.intltool-merge-cache \
 		intltool-extract.in \
 		intltool-merge.in \
 		intltool-update.in \
@@ -109,6 +130,7 @@ git-mk-install:
 	for x in \
 		.gitignore \
 		$$GTKDOCGITIGNOREFILES \
+		$$GNOMEDOCUTILSGITIGNOREFILES \
 		$$INTLTOOLGITIGNOREFILES \
 		$$AUTOCONFGITIGNOREFILES \
 		$(GITIGNOREFILES) \
@@ -135,13 +157,14 @@ git-mk-install:
 		"*.rej" \
 		"*.bak" \
 		"*~" \
+		".*.swp" \
 	; do echo /$$x; done | \
-	grep -v '/[.][.]/' | \
+	sed "s ^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \
 	sed 's@/[.]/@/@g' | \
 	LANG=C sort | uniq > $  tmp && \
 	mv $  tmp $@;
 
-all: .gitignore gitignore-recurse
+all: $(srcdir)/.gitignore gitignore-recurse
 gitignore-recurse:
 	@if test "x$(SUBDIRS)" = "x$(DIST_SUBDIRS)"; then :; else \
 		list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
@@ -150,6 +173,6 @@ gitignore-recurse:
 	fi;
 maintainer-clean-local: gitignore-clean
 gitignore-clean:
-	rm -f .gitignore
+	rm -f $(srcdir)/.gitignore
 .PHONY: gitignore-clean gitignore-recurse
 



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