1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994-2013 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 we are running under GNU make.
30 ## This is somewhat of an hack, and might be improved, but is good
32 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
34 ## Shell code that determines whether the current make instance is
35 ## running with a given one-letter option (e.g., -k, -n) that takes
36 ## no argument. Actually, the only supported option at the moment
37 ## is '-n' (support for '-k' will be added soon).
38 am__make_running_with_option = \
40 case $${am__target_option-} in \
42 *) echo "am__make_running_with_option: internal error: invalid" \
43 "target option '$${am__target_option-}' specified" >&2; \
47 if $(am__is_gnu_make); then \
48 ## GNU make: $(MAKEFLAGS) is quite tricky there, and the older
49 ## $(MFLAGS) variable behaves much better.
50 for am__flg in $$MFLAGS; do \
53 -*$$am__target_option*) am__has_opt=yes; break;; \
57 ## Non-GNU make: we must rely on $(MAKEFLAGS). This is tricky and brittle,
58 ## but is the best we can do.
60 ## If we run "make TESTS='snooze nap'", FreeBSD make will export MAKEFLAGS
61 ## to " TESTS=foo\ nap", so that the simpler loop below (on word-splitted
62 ## $$MAKEFLAGS) would see a "make flag" equal to "nap", and would wrongly
63 ## misinterpret that as and indication that make is running in dry mode.
64 ## This has already happened in practice. So we need this unpleasant hack.
66 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
67 | grep '^AM OK$$' >/dev/null || am__has_opt=yes ;; \
70 for am__flg in $$MAKEFLAGS; do \
71 if test $$am__skip_next = yes; then \
77 ## Quite ugly special-casing. We might need other similar, but let's
78 ## wait until the need arises.
79 -I) am__skip_next=yes;; \
80 *$$am__target_option*) am__has_opt=yes; break;; \
85 test $$am__has_opt = yes; \
88 ## Shell code that determines whether make is running in "dry mode"
89 ## ("make -n") or not. Useful in rules that invoke make recursively,
90 ## and are thus executed also with "make -n" -- either because they
91 ## are declared as dependencies to '.MAKE' (NetBSD make), or because
92 ## their recipes contain the "$(MAKE)" string (GNU and Solaris make).
93 am__make_dryrun = { am__target_option=n; $(am__make_running_with_option); }
95 ## Some derived variables that have been found to be useful.
96 pkgdatadir = $(datadir)/@PACKAGE@
97 pkgincludedir = $(includedir)/@PACKAGE@
98 pkglibdir = $(libdir)/@PACKAGE@
99 pkglibexecdir = $(libexecdir)/@PACKAGE@
101 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
102 install_sh_DATA = $(install_sh) -c -m 644
103 install_sh_PROGRAM = $(install_sh) -c
104 install_sh_SCRIPT = $(install_sh) -c
105 INSTALL_HEADER = $(INSTALL_DATA)
106 transform = $(program_transform_name)
108 ## These are defined because otherwise make on NetBSD V1.1 will print
109 ## (eg): $(NORMAL_INSTALL) expands to empty string.
117 ## dejagnu.am uses these variables. Some users might rely on them too.
118 ?BUILD?build_triplet = @build@
119 ?HOST?host_triplet = @host@
120 ?TARGET?target_triplet = @target@