Merge branch 'yacc-quote-fix'
[platform/upstream/automake.git] / lib / am / header-vars.am
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994-2012 Free Software Foundation, Inc.
3
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)
7 ## any later version.
8
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.
13
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/>.
16
17 VPATH = @srcdir@
18
19 @SET_MAKE@
20
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
26 ## a vendor make.
27 ## DESTDIR =
28
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).
34
35 am__make_dryrun = \
36   { \
37     am__dry=no; \
38     case $$MAKEFLAGS in \
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.
44       *\\[\ \   ]*) \
45         echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
46           | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
47       *) \
48         for am__flg in $$MAKEFLAGS; do \
49           case $$am__flg in \
50             *=*|--*) ;; \
51             *n*) am__dry=yes; break;; \
52           esac; \
53         done;; \
54     esac; \
55     test $$am__dry = yes; \
56   }
57
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@
63
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)
70
71 ## These are defined because otherwise make on NetBSD V1.1 will print
72 ## (eg): $(NORMAL_INSTALL) expands to empty string.
73 NORMAL_INSTALL = :
74 PRE_INSTALL = :
75 POST_INSTALL = :
76 NORMAL_UNINSTALL = :
77 PRE_UNINSTALL = :
78 POST_UNINSTALL = :
79
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@