quoting 714 B

1234567891011121314151617181920212223242526272829303132
  1. # -*-perl-*-
  2. $description = "The following test creates a makefile to test using \n" .
  3. "quotes within makefiles.";
  4. open(MAKEFILE,"> $makefile");
  5. # The Contents of the MAKEFILE ...
  6. print MAKEFILE <<'EOM';
  7. SHELL = /bin/sh
  8. TEXFONTS = NICEFONT
  9. DEFINES = -DDEFAULT_TFM_PATH=\".:$(TEXFONTS)\"
  10. test: ; @"echo" 'DEFINES = $(DEFINES)'
  11. EOM
  12. # END of Contents of MAKEFILE
  13. close(MAKEFILE);
  14. &run_make_with_options($makefile,"",&get_logfile);
  15. # Create the answer to what should be produced by this Makefile
  16. $answer = 'DEFINES = -DDEFAULT_TFM_PATH=\".:NICEFONT\"' . "\n";
  17. # COMPARE RESULTS
  18. &compare_output($answer,&get_logfile(1));
  19. 1;