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