diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2014-08-11 10:59:13 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2014-08-11 10:59:13 +0100 |
commit | e2cea5fc249272e38f9cd4b23faa7f44667b6525 (patch) | |
tree | 616c959e3d0fff692565a53343786dc2bee7d9b0 /Makefile.am | |
parent | 355e96bd64d12d41069914735f8c7bedb6ae60c0 (diff) |
autotools: proper fix for generated Makevars and distcheck
Reverts 21da4a54545cd6871d1d888566ce9fe488afef67.
It is needed to generate Makevars in-tree even when building out-of-tree because of
how Autotools work. However, distcheck doesn't properly remove the Makevars file in
the generated distdir and makes po/ read only, preventing the build system from
generating an up-to-date version of Makevars. This commit adds the required hooks
needed to fix this behavior.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 41a6bf3ee9..3b5ea42697 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -431,5 +431,14 @@ pkgbuild:: | |||
431 | clean-local: | 431 | clean-local: |
432 | rm -rf benchmark coverage | 432 | rm -rf benchmark coverage |
433 | 433 | ||
434 | # Makevars is generated in top source directory, even for out-of-tree | ||
434 | distclean-local: | 435 | distclean-local: |
435 | rm -f po/Makevars | 436 | rm -f $(top_srcdir)/po/Makevars |
437 | |||
438 | # we need this to remove Makevars from dist | ||
439 | dist-hook: | ||
440 | rm -f $(distdir)/po/Makevars | ||
441 | |||
442 | # in dist tree po is read only, and we need to generate Makevars in there | ||
443 | distcheck-hook: | ||
444 | chmod +w $(distdir)/po | ||