summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-04-17 17:55:39 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-04-17 17:55:39 -0400
commit133839d1d7ae77cfc80638a3a29187794f87dddf (patch)
treee60967854e01467ba359a69b96a4ce71a961ff89
parentd71b8b4c90fdce60ee3a5d3494c6ef589b120613 (diff)
downloadpango-133839d1d7ae77cfc80638a3a29187794f87dddf.tar.gz
[git.mk] Document
-rw-r--r--Makefile.am3
-rw-r--r--git.mk22
2 files changed, 23 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index fb963518..a440d4f2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,6 +53,8 @@ MAINTAINERCLEANFILES = \
$(srcdir)/ChangeLog \
`find "$(srcdir)" -type f -name Makefile.in -print`
+### ChangeLog generation
+
ChangeLog: $(srcdir)/ChangeLog
$(srcdir)/ChangeLog:
@echo Creating $@
@@ -69,6 +71,7 @@ $(srcdir)/ChangeLog:
fi
.PHONY: $(srcdir)/ChangeLog
+
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pango.pc
diff --git a/git.mk b/git.mk
index 773b5d1f..e6606bc5 100644
--- a/git.mk
+++ b/git.mk
@@ -1,7 +1,21 @@
+# git.mk
+#
+# Copyright 2009 Red Hat, Inc.
+# Written by Behdad Esfahbod
+#
+# 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.
+# Note that for files like editor backup, etc, there are better places to
+# ignore them. See "man gitignore".
+#
-git-all: gitignore-install
+git-all: git-mk-install
-gitignore-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 \
@@ -22,6 +36,9 @@ gitignore-install:
fi; \
fi; done; test x$$any_failed = x
+
+### .gitignore generation
+
.gitignore: Makefile.am $(top_srcdir)/git.mk
@echo Generating $@
@GTKDOCIGNOREFILES=; test "x$(DOC_MODULE)" = x || \
@@ -70,3 +87,4 @@ maintainer-clean-local: gitignore-clean
gitignore-clean:
rm -f .gitignore
.PHONY: gitignore-clean
+