summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac10
2 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 25b3eb3378c..98008c528de 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1241,7 +1241,12 @@ COMMIT_MSG_MAGIC = VGhpcyBpcyB0aGUgY29tbWl0LW1zZyBob29rIG9mIEd1aXg=
1241 cp etc/git/commit-msg $@; \ 1241 cp etc/git/commit-msg $@; \
1242 fi 1242 fi
1243 1243
1244# The etc/git/ config files are not distributed and have no use when building
1245# from a tarball. Do not add dependencies on these to *_DATA when building
1246# from a tarball, as that breaks the build.
1247if in_git_p
1244nodist_noinst_DATA = .git/hooks/pre-push .git/config .git/hooks/commit-msg 1248nodist_noinst_DATA = .git/hooks/pre-push .git/config .git/hooks/commit-msg
1249endif
1245 1250
1246# Downloading up-to-date PO files. 1251# Downloading up-to-date PO files.
1247 1252
diff --git a/configure.ac b/configure.ac
index ecbd596a34f..8c3a06da376 100644
--- a/configure.ac
+++ b/configure.ac
@@ -265,6 +265,16 @@ dnl Documentation translation.
265AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate]) 265AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate])
266AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo]) 266AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo])
267 267
268AC_MSG_CHECKING([if building from git])
269if test -e .git; then
270 in_git_p=yes
271else
272 in_git_p=no
273fi
274AC_MSG_RESULT([$in_git_p])
275AM_CONDITIONAL([in_git_p],
276 [test "x$in_git_p" = "xyes"])
277
268case "$storedir" in 278case "$storedir" in
269 /gnu/store) 279 /gnu/store)
270 ;; 280 ;;