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