- Rework secondary expansion so we only defer it if there's a possibility
[make.git] / tests / scripts / features / quoting
blob916681c994b096d574368a7172c434e5170909ba
1 #                                                                    -*-perl-*-
3 $description = "The following test creates a makefile to test using \n" .
4                "quotes within makefiles.";
6 open(MAKEFILE,"> $makefile");
8 # The Contents of the MAKEFILE ...
10 print MAKEFILE <<'EOM';
11 SHELL = /bin/sh
12 TEXFONTS = NICEFONT
13 DEFINES = -DDEFAULT_TFM_PATH=\".:$(TEXFONTS)\"
14 test: ; @"echo" 'DEFINES = $(DEFINES)'
15 EOM
17 # END of Contents of MAKEFILE
19 close(MAKEFILE);
22 &run_make_with_options($makefile,"",&get_logfile);
25 # Create the answer to what should be produced by this Makefile
26 $answer = 'DEFINES = -DDEFAULT_TFM_PATH=\".:NICEFONT\"' . "\n";
28 # COMPARE RESULTS
30 &compare_output($answer,&get_logfile(1));