diff options
| -rw-r--r-- | Makefile.am | 5 | ||||
| -rw-r--r-- | configure.ac | 10 |
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. | ||
| 1247 | if in_git_p | ||
| 1244 | nodist_noinst_DATA = .git/hooks/pre-push .git/config .git/hooks/commit-msg | 1248 | nodist_noinst_DATA = .git/hooks/pre-push .git/config .git/hooks/commit-msg |
| 1249 | endif | ||
| 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. | |||
| 265 | AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate]) | 265 | AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate]) |
| 266 | AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo]) | 266 | AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo]) |
| 267 | 267 | ||
| 268 | AC_MSG_CHECKING([if building from git]) | ||
| 269 | if test -e .git; then | ||
| 270 | in_git_p=yes | ||
| 271 | else | ||
| 272 | in_git_p=no | ||
| 273 | fi | ||
| 274 | AC_MSG_RESULT([$in_git_p]) | ||
| 275 | AM_CONDITIONAL([in_git_p], | ||
| 276 | [test "x$in_git_p" = "xyes"]) | ||
| 277 | |||
| 268 | case "$storedir" in | 278 | case "$storedir" in |
| 269 | /gnu/store) | 279 | /gnu/store) |
| 270 | ;; | 280 | ;; |
