automake: Don't rely on List::Util to provide 'none'
[automake.git] / lib / local.mk
blob286d435f4452a9443006d59b23ea27246c6677c6
1 ## -*- makefile-automake -*-
2 ## Copyright (C) 1995-2018 Free Software Foundation, Inc.
3 ##
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program. If not, see <https://www.gnu.org/licenses/>.
17 ## -------------------------------------------------------------------- ##
18 ## Auxiliary scripts and files for use with "automake --add-missing". ##
19 ## -------------------------------------------------------------------- ##
21 dist_pkgvdata_DATA = \
22 %D%/COPYING \
23 %D%/INSTALL \
24 %D%/texinfo.tex
26 # These must all be executable when installed. However, if we use
27 # _SCRIPTS, then the program transform will be applied, which is not
28 # what we want. So we make them executable by hand.
29 dist_script_DATA = \
30 %D%/config.guess \
31 %D%/config.sub \
32 %D%/install-sh \
33 %D%/mdate-sh \
34 %D%/missing \
35 %D%/mkinstalldirs \
36 %D%/ylwrap \
37 %D%/depcomp \
38 %D%/compile \
39 %D%/py-compile \
40 %D%/ar-lib \
41 %D%/test-driver \
42 %D%/tap-driver.sh
44 install-data-hook:
45 @$(POST_INSTALL)
46 @for f in $(dist_script_DATA); do echo $$f; done \
47 | sed 's,^%D%/,,' \
48 | ( st=0; \
49 while read f; do \
50 echo " chmod +x '$(DESTDIR)$(scriptdir)/$$f'"; \
51 chmod +x "$(DESTDIR)$(scriptdir)/$$f" || st=1; \
52 done; \
53 exit $$st )
55 installcheck-local: installcheck-executable-scripts
56 installcheck-executable-scripts:
57 @for f in $(dist_script_DATA); do echo $$f; done \
58 | sed 's,^%D%/,,' \
59 | while read f; do \
60 path="$(pkgvdatadir)/$$f"; \
61 test -x "$$path" || echo $$path; \
62 done \
63 | sed 's/$$/: not executable/' \
64 | grep . 1>&2 && exit 1; exit 0
66 # vim: ft=automake noet