1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994-2012 Free Software Foundation, Inc.
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)
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 <http://www.gnu.org/licenses/>.
21 ## We used to define this. However, we don't because vendor makes
22 ## (e.g., Solaris, Irix) won't correctly propagate variables that are
23 ## defined in Makefile. This particular variable can't be correctly
24 ## defined by configure (at least, not the current configure), so we
25 ## simply avoid defining it to allow the user to use this feature with
29 ## Shell code that determines whether make is running in "dry mode"
30 ## ("make -n") or not. Useful in rules that invoke make recursively,
31 ## and are thus executed also with "make -n" -- either because they
32 ## are declared as dependencies to '.MAKE' (NetBSD make), or because
33 ## their recipes contain the "$(MAKE)" string (GNU and Solaris make).
39 ## If we run "make TESTS='snooze nap'", GNU make will export MAKEFLAGS
40 ## to "TESTS=foo\ nap", so that the simpler loop below (on word-splitted
41 ## $$MAKEFLAGS) would see a "make flag" equal to "nap", and would wrongly
42 ## misinterpret that as and indication that make is running in dry mode.
43 ## This has already happened in practice. So we need this hack.
45 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
46 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
48 for am__flg in $$MAKEFLAGS; do \
51 *n*) am__dry=yes; break;; \
55 test $$am__dry = yes; \
58 ## Some derived variables that have been found to be useful.
59 pkgdatadir = $(datadir)/@PACKAGE@
60 pkgincludedir = $(includedir)/@PACKAGE@
61 pkglibdir = $(libdir)/@PACKAGE@
62 pkglibexecdir = $(libexecdir)/@PACKAGE@
64 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
65 install_sh_DATA = $(install_sh) -c -m 644
66 install_sh_PROGRAM = $(install_sh) -c
67 install_sh_SCRIPT = $(install_sh) -c
68 INSTALL_HEADER = $(INSTALL_DATA)
69 transform = $(program_transform_name)
71 ## These are defined because otherwise make on NetBSD V1.1 will print
72 ## (eg): $(NORMAL_INSTALL) expands to empty string.
80 ## dejagnu.am uses these variables. Some users might rely on them too.
81 ?BUILD?build_triplet = @build@
82 ?HOST?host_triplet = @host@
83 ?TARGET?target_triplet = @target@