File: dash-e

package info (click to toggle)
make-doc-non-dfsg 4.4.1-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 9,632 kB
  • sloc: ansic: 31,255; sh: 5,213; perl: 1,612; makefile: 160; lisp: 26; sed: 16
file content (24 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#                                                                    -*-perl-*-

$description = "Test the -e (environment overrides) option";

$ENV{GOOGLE} = 'boggle';

run_make_test(q!
GOOGLE = bazzle
all:; @echo "$(GOOGLE)"
!,
              '-e', "boggle\n");

# Ensure variables set on the command line have the origin correct
# See SV 61218

run_make_test(q!
$(info FOO [$(origin FOO)]: $(value FOO))
all: ;
recurse: ; @$(MAKE) -f #MAKEFILE#
!,
              '-e --no-print-directory FOO=1 recurse',
              "FOO [command line]: 1\nFOO [command line]: 1\n#MAKE#[1]: 'all' is up to date.");

1;