summaryrefslogtreecommitdiff
path: root/git.mk
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-04-18 16:19:24 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-04-18 16:19:24 -0400
commit4ad7bc1ece28204a528561fa383ffc4664c5c578 (patch)
treec9e75ed69d9a3aebff9904ace2a74d3ac02304bb /git.mk
parentd0830820f84eb28a27502306b6acbf0f2b57fc7d (diff)
downloadpango-4ad7bc1ece28204a528561fa383ffc4664c5c578.tar.gz
[git.mk] Support out-of-tree builds
Diffstat (limited to 'git.mk')
-rw-r--r--git.mk14
1 files changed, 9 insertions, 5 deletions
diff --git a/git.mk b/git.mk
index 6ce5ebb5..9cfce1c1 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.
#
@@ -77,7 +81,7 @@ 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 -o "x$(DOC_MAIN_SGML_FILE)" = x || \
@@ -155,12 +159,12 @@ git-mk-install:
"*~" \
".*.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 \
@@ -169,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