Commit | Line | Data |
---|---|---|
d8875586 MBT |
1 | ?RCS: $Id: make.U 1 2006-08-24 12:32:52Z rmanfredi $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1996, Andy Dougherty | |
4 | ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi | |
cf39bd7e | 5 | ?RCS: |
d8875586 MBT |
6 | ?RCS: You may redistribute only under the terms of the Artistic Licence, |
7 | ?RCS: as specified in the README file that comes with the distribution. | |
8 | ?RCS: You may reuse parts of this distribution only within the terms of | |
9 | ?RCS: that same Artistic Licence; a copy of which may be found at the root | |
10 | ?RCS: of the source tree for dist 4.0. | |
11 | ?RCS: | |
12 | ?RCS: $Log: make.U,v $ | |
13 | ?RCS: Revision 3.0.1.1 1997/02/28 16:09:40 ram | |
14 | ?RCS: patch61: created | |
15 | ?RCS: | |
16 | ?MAKE:make_set_make : Loc rm sed make | |
17 | ?MAKE: -pick add $@ %< | |
18 | ?S:make_set_make: | |
19 | ?S: Some versions of 'make' set the variable MAKE. Others do not. | |
20 | ?S: This variable contains the string to be included in Makefile.SH | |
21 | ?S: so that MAKE is set if needed, and not if not needed. | |
22 | ?S: Possible values are: | |
cf39bd7e | 23 | ?S: |
d8875586 | 24 | ?S: make_set_make='#' # If your make program handles this for you, |
cf39bd7e | 25 | ?S: |
d8875586 | 26 | ?S: make_set_make="MAKE=$make" # if it doesn't. |
cf39bd7e | 27 | ?S: |
d8875586 MBT |
28 | ?S: This uses a comment character so that we can distinguish a |
29 | ?S: 'set' value (from a previous config.sh or Configure -D option) | |
30 | ?S: from an uncomputed value. | |
31 | ?S:. | |
32 | ?LINT: extern MAKE | |
33 | ?LINT: change MAKE | |
34 | ?X: This test is based on one from an autoconf-generated configure | |
35 | ?X: script. Autoconf stole a lot from Configure, but now it's our | |
36 | ?X: turn to do so... ;-) -- RAM, 21/02/97 | |
37 | : check whether make sets MAKE | |
38 | echo " " | |
39 | echo "Checking if your $make program sets \$(MAKE)..." >&4 | |
40 | case "$make_set_make" in | |
41 | '') | |
42 | ?X: Use sed so we don't have a line begining with @echo. Metaconfig | |
43 | ?X: will think that's a command like @if or @end. | |
44 | $sed 's/^X //' > testmake.mak << 'EOF' | |
45 | Xall: | |
46 | X @echo 'maketemp="$(MAKE)"' | |
47 | EOF | |
48 | ?X: GNU make sometimes prints "make[1]: Entering...", which would confuse us | |
49 | case "`$make -f testmake.mak 2>/dev/null`" in | |
50 | *maketemp=*) make_set_make='#' ;; | |
51 | *) make_set_make="MAKE=$make" ;; | |
52 | esac | |
53 | $rm -f testmake.mak | |
54 | ;; | |
55 | esac | |
56 | case "$make_set_make" in | |
57 | '#') echo "Yup, it does.";; | |
58 | *) echo "Nope, it doesn't.";; | |
59 | esac | |
60 |