refactor: new variable telling whether make is running in "dry mode"
[platform/upstream/automake.git] / lib / am / header-vars.am
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2003, 2005,
3 ## 2006 Free Software Foundation, Inc.
4
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
8 ## any later version.
9
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
14
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18 VPATH = @srcdir@
19
20 @SET_MAKE@
21
22 ## We used to define this.  However, we don't because vendor makes
23 ## (e.g., Solaris, Irix) won't correctly propagate variables that are
24 ## defined in Makefile.  This particular variable can't be correctly
25 ## defined by configure (at least, not the current configure), so we
26 ## simply avoid defining it to allow the user to use this feature with
27 ## a vendor make.
28 ## DESTDIR =
29
30 ## Shell code that determines whether make is running in "dry mode"
31 ## ("make -n") or not.  Useful in rules that invoke make recursively,
32 ## and are thus executed also with "make -n" -- either because they
33 ## are declared as dependencies to '.MAKE' (NetBSD make), or because
34 ## their recipes contain the "$(MAKE)" string (GNU and Solari make).
35 am__make_dryrun = \
36   { \
37     am__dry=no; \
38     for am__flg in $$MAKEFLAGS; do \
39       case $$am__flg in \
40         *=*|--*) ;; \
41         *n*) am__dry=yes; break;; \
42       esac; \
43     done; \
44     test $$am__dry = yes; \
45   }
46
47 ## Some derived variables that have been found to be useful.
48 pkgdatadir = $(datadir)/@PACKAGE@
49 pkgincludedir = $(includedir)/@PACKAGE@
50 pkglibdir = $(libdir)/@PACKAGE@
51 pkglibexecdir = $(libexecdir)/@PACKAGE@
52
53 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
54 install_sh_DATA = $(install_sh) -c -m 644
55 install_sh_PROGRAM = $(install_sh) -c
56 install_sh_SCRIPT = $(install_sh) -c
57 INSTALL_HEADER = $(INSTALL_DATA)
58 transform = $(program_transform_name)
59
60 ## These are defined because otherwise make on NetBSD V1.1 will print
61 ## (eg): $(NORMAL_INSTALL) expands to empty string.
62 NORMAL_INSTALL = :
63 PRE_INSTALL = :
64 POST_INSTALL = :
65 NORMAL_UNINSTALL = :
66 PRE_UNINSTALL = :
67 POST_UNINSTALL = :
68
69 ## dejagnu.am uses these variables.  Some users might rely on them too.
70 ?BUILD?build_triplet = @build@
71 ?HOST?host_triplet = @host@
72 ?TARGET?target_triplet = @target@