tests: fix a spurious failures with non-GNU make
[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 EXTRA_DIST = gnupload gitlog-to-changelog update-copyright
21
22 ## -------------------------------------------------------------------- ##
23 ##  Auxiliary scripts and files for use with "automake --add-missing".  ##
24 ## -------------------------------------------------------------------- ##
25
26 dist_pkgvdata_DATA = \
27   COPYING \
28   INSTALL \
29   texinfo.tex
30
31 ## These must all be executable when installed.  However, if we use
32 ## _SCRIPTS, then the program transform will be applied, which is not
33 ## what we want.  So we make them executable by hand.
34 dist_script_DATA = \
35   config.guess \
36   config.sub \
37   install-sh \
38   mdate-sh \
39   missing \
40   mkinstalldirs \
41   elisp-comp \
42   ylwrap \
43   depcomp \
44   compile \
45   py-compile \
46   ar-lib \
47   test-driver \
48   tap-driver.sh \
49   tap-driver.pl
50
51 install-data-hook:
52         @$(POST_INSTALL)
53         @for prog in $(dist_script_DATA); do \
54           echo " chmod +x '$(DESTDIR)$(scriptdir)/$$prog'"; \
55           chmod +x "$(DESTDIR)$(scriptdir)/$$prog"; \
56         done
57
58 installcheck-local:
59         @for file in $(dist_script_DATA); do \
60           path="$(pkgvdatadir)/$$file"; \
61           test -x "$$path" || echo $$path; \
62         done \
63           | sed 's/$$/: not executable/' \
64           | grep . && exit 1; exit 0
65
66 ## ---------------------------------------------------- ##
67 ##  Private perl modules used by automake and aclocal.  ##
68 ## ---------------------------------------------------- ##
69
70 perllibdir = $(pkgvdatadir)/Automake
71 dist_perllib_DATA = \
72   Automake/ChannelDefs.pm \
73   Automake/Channels.pm \
74   Automake/Condition.pm \
75   Automake/Configure_ac.pm \
76   Automake/DisjConditions.pm \
77   Automake/FileUtils.pm \
78   Automake/General.pm \
79   Automake/Getopt.pm \
80   Automake/Item.pm \
81   Automake/ItemDef.pm \
82   Automake/Location.pm \
83   Automake/Options.pm \
84   Automake/Rule.pm \
85   Automake/RuleDef.pm \
86   Automake/Variable.pm \
87   Automake/VarDef.pm \
88   Automake/Version.pm \
89   Automake/XFile.pm \
90   Automake/Wrap.pm
91
92 nodist_perllib_DATA = Automake/Config.pm
93 CLEANFILES = $(nodist_perllib_DATA)
94
95 ## We can't use configure to do the substitution here; we must do it
96 ## by hand.  We use a funny notation here to avoid configure
97 ## substitutions in our text.
98 do_subst = in=`echo $@ | sed 's/\.[^.]*$$//'`; sed \
99   -e 's,[@]APIVERSION[@],$(APIVERSION),g' \
100   -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
101   -e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
102   -e 's,[@]PERL[@],$(PERL),g' \
103   -e 's,[@]PERL_THREADS[@],$(PERL_THREADS),g' \
104   -e 's,[@]SHELL[@],$(SHELL),g' \
105   -e 's,[@]VERSION[@],$(VERSION),g' \
106   -e "s,[@]configure_input[@],Generated from $$in.in; do not edit by hand.,g" \
107   -e 's,[@]datadir[@],$(datadir),g'
108
109 ## This file depends on Makefile so it is rebuilt if $(VERSION),
110 ## $(datadir) or other do_subst'ituted variables change.
111 ## Use chmod a-w to prevent people from editing the wrong file by accident.
112 Automake/Config.pm: Automake/Config.in Makefile
113         $(AM_V_at)rm -f $@ $@-t
114         $(AM_V_at)test -d Automake || mkdir Automake
115         $(AM_V_GEN)$(do_subst) $(srcdir)/Automake/Config.in >$@-t
116         $(AM_V_at)chmod a-w $@-t && mv -f $@-t $@
117 EXTRA_DIST += Automake/Config.in
118
119 ## --------------------- ##
120 ##  Makefile fragments.  ##
121 ## --------------------- ##
122
123 dist_am_DATA = \
124   am/check.am \
125   am/check2.am \
126   am/clean-hdr.am \
127   am/clean.am \
128   am/compile.am \
129   am/configure.am \
130   am/data.am \
131   am/dejagnu.am \
132   am/depend.am \
133   am/depend2.am \
134   am/distdir.am \
135   am/footer.am \
136   am/header-vars.am \
137   am/header.am \
138   am/install.am \
139   am/inst-vars.am \
140   am/java.am \
141   am/lang-compile.am \
142   am/lex.am \
143   am/library.am \
144   am/libs.am \
145   am/libtool.am \
146   am/lisp.am \
147   am/ltlib.am \
148   am/ltlibrary.am \
149   am/mans-vars.am \
150   am/mans.am \
151   am/program.am \
152   am/progs.am \
153   am/python.am \
154   am/remake-hdr.am \
155   am/scripts.am \
156   am/subdirs.am \
157   am/tags.am \
158   am/texi-vers.am \
159   am/texibuild.am \
160   am/texinfos.am \
161   am/vala.am \
162   am/yacc.am