gbs.conf: correct upstream branch name
[platform/upstream/automake.git] / lib / am / header-vars.am
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994-2013 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 we are running under GNU make.
30 ## This is somewhat of an hack, and might be improved, but is good
31 ## enough for now.
32 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
33
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.
37 am__make_running_with_option = \
38   case $${target_option-} in \
39       ?) ;; \
40       *) echo "am__make_running_with_option: internal error: invalid" \
41               "target option '$${target_option-}' specified" >&2; \
42          exit 1;; \
43   esac; \
44   has_opt=no; \
45   sane_makeflags=$$MAKEFLAGS; \
46   if $(am__is_gnu_make); then \
47 ## The format of $(MAKEFLAGS) is quite tricky with GNU make; the
48 ## variable $(MFLAGS) behaves much better in that regard.  So use it.
49     sane_makeflags=$$MFLAGS; \
50   else \
51 ## Non-GNU make: we must rely on $(MAKEFLAGS).  This is tricker and more
52 ## brittle, but is the best we can do.
53     case $$MAKEFLAGS in \
54 ## If we run "make TESTS='snooze nap'", FreeBSD make will export MAKEFLAGS
55 ## to " TESTS=foo\ nap", so that the simpler loop below (on word-split
56 ## $$MAKEFLAGS) would see a "make flag" equal to "nap", and would wrongly
57 ## misinterpret that as and indication that make is running in dry mode.
58 ## This has already happened in practice.  So we need this hack.
59       *\\[\ \   ]*) \
60 ## Extra indirection with ${bs} required by FreeBSD 8.x make.
61 ## Not sure why (so sorry for the cargo-cult programming here).
62         bs=\\; \
63         sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
64           | sed "s/$$bs$$bs[$$bs $$bs   ]*//g"`;; \
65     esac; \
66   fi; \
67   skip_next=no; \
68   strip_trailopt () \
69   { \
70     flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
71   }; \
72   for flg in $$sane_makeflags; do \
73     test $$skip_next = yes && { skip_next=no; continue; }; \
74     case $$flg in \
75       *=*|--*) continue;; \
76 ##
77 ## GNU make 4.0 has changed the format of $MFLAGS, and removed the space
78 ## between an option and its argument (e.g., from "-I dir" to "-Idir").
79 ## So we need to handle both formats, at least for options valid in GNU
80 ## make.  OTOH, BSD make formats $(MAKEFLAGS) by separating all options,
81 ## and separating any option from its argument, so things are easier
82 ## there.
83 ##
84 ## For GNU make and BSD make.
85         -*I) strip_trailopt 'I'; skip_next=yes;; \
86       -*I?*) strip_trailopt 'I';; \
87 ## For GNU make >= 4.0.
88         -*O) strip_trailopt 'O'; skip_next=yes;; \
89       -*O?*) strip_trailopt 'O';; \
90 ## For GNU make (possibly overkill, this one).
91         -*l) strip_trailopt 'l'; skip_next=yes;; \
92       -*l?*) strip_trailopt 'l';; \
93 ## For BSD make.
94       -[dEDm]) skip_next=yes;; \
95 ## For NetBSD make.
96       -[JT]) skip_next=yes;; \
97     esac; \
98     case $$flg in \
99       *$$target_option*) has_opt=yes; break;; \
100     esac; \
101   done; \
102   test $$has_opt = yes
103
104 ## Shell code that determines whether make is running in "dry mode"
105 ## ("make -n") or not.  Useful in rules that invoke make recursively,
106 ## and are thus executed also with "make -n" -- either because they
107 ## are declared as dependencies to '.MAKE' (NetBSD make), or because
108 ## their recipes contain the "$(MAKE)" string (GNU and Solaris make).
109 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
110
111 ## Shell code that determines whether make is running in "keep-going mode"
112 ## ("make -k") or not.  Useful in rules that must recursively descend into
113 ## subdirectories, and decide whether to stop at the first error or not.
114 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
115
116 ## Some derived variables that have been found to be useful.
117 pkgdatadir = $(datadir)/@PACKAGE@
118 pkgincludedir = $(includedir)/@PACKAGE@
119 pkglibdir = $(libdir)/@PACKAGE@
120 pkglibexecdir = $(libexecdir)/@PACKAGE@
121
122 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
123 install_sh_DATA = $(install_sh) -c -m 644
124 install_sh_PROGRAM = $(install_sh) -c
125 install_sh_SCRIPT = $(install_sh) -c
126 INSTALL_HEADER = $(INSTALL_DATA)
127 transform = $(program_transform_name)
128
129 ## These are defined because otherwise make on NetBSD V1.1 will print
130 ## (eg): $(NORMAL_INSTALL) expands to empty string.
131 NORMAL_INSTALL = :
132 PRE_INSTALL = :
133 POST_INSTALL = :
134 NORMAL_UNINSTALL = :
135 PRE_UNINSTALL = :
136 POST_UNINSTALL = :
137
138 ## dejagnu.am uses these variables.  Some users might rely on them too.
139 ?BUILD?build_triplet = @build@
140 ?HOST?host_triplet = @host@
141 ?TARGET?target_triplet = @target@