mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-01 01:33:51 +00:00
24 lines
511 B
Text
24 lines
511 B
Text
|
# -*-perl-*-
|
||
|
|
||
|
$description = 'Test the $(shell ...) function.';
|
||
|
|
||
|
$details = '';
|
||
|
|
||
|
|
||
|
# Test shells inside rules.
|
||
|
run_make_test('.PHONY: all
|
||
|
all: ; @echo $(shell echo hi)
|
||
|
','','hi');
|
||
|
|
||
|
|
||
|
# Test shells inside exported environment variables.
|
||
|
# This is the test that fails if we try to put make exported variables into
|
||
|
# the environment for a $(shell ...) call.
|
||
|
run_make_test('
|
||
|
export HI = $(shell echo hi)
|
||
|
.PHONY: all
|
||
|
all: ; @echo $$HI
|
||
|
','','hi');
|
||
|
|
||
|
1;
|