]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
autotools: avoid check_SCRIPTS duplication 1993/head
authorLoic Dachary <loic@dachary.org>
Thu, 19 Jun 2014 07:54:32 +0000 (09:54 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 19 Jun 2014 07:54:32 +0000 (09:54 +0200)
commit741ad3ff3b1949492729ac5f7bfcc42bdcd6df5a
tree9d15cde58fcf6caf8772eb87686c979c4cf53657
parentc0d78c62e86d799e1be759b9fa771fec9e817fe8
autotools: avoid check_SCRIPTS duplication

The check_SCRIPTS content must be added to EXTRA_DIST, otherwise it will
not be included by make dist and it won't be possible to run make check
successfully.

One solution would be to add $(check_SCRIPTS) to EXTRA_DIST to avoid
duplication and help with long term maintenance. However, $(srcdir) is
not supported in the content of the check_SCRIPTS variable.

A GNU Make variable substitution (patsubst) is used to prepend $(srcdir)
to each script, only when used in the EXTRA_DIST variable.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/Makefile.am
src/test/Makefile.am