maint: run "make update-copyright"
[platform/upstream/automake.git] / lib / Makefile.am
1 ## Process this file with automake to create Makefile.in
2
3 ## Makefile for Automake lib.
4
5 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 SUBDIRS = Automake am
21
22 dist_pkgvdata_DATA = \
23   COPYING \
24   INSTALL \
25   texinfo.tex
26
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   config.guess \
32   config.sub \
33   install-sh \
34   mdate-sh \
35   missing \
36   mkinstalldirs \
37   elisp-comp \
38   ylwrap \
39   acinstall \
40   depcomp \
41   compile \
42   py-compile \
43   ar-lib \
44   test-driver \
45   tap-driver.sh \
46   tap-driver.pl
47
48 EXTRA_DIST = gnupload gitlog-to-changelog update-copyright
49
50 install-data-hook:
51         @$(POST_INSTALL)
52         @for prog in $(dist_script_DATA); do \
53           echo " chmod +x '$(DESTDIR)$(scriptdir)/$$prog'"; \
54           chmod +x "$(DESTDIR)$(scriptdir)/$$prog"; \
55         done
56
57 ## `test -x' is not portable.  So we use Perl instead.  If Perl
58 ## doesn't exist, then this test is meaningless anyway.
59 installcheck-local:
60         for file in $(dist_script_DATA); do \
61           $(PERL) -e "exit ! -x '$(pkgvdatadir)/$$file';" || exit 1; \
62         done