Home | History | Annotate | Line # | Download | only in unit-tests
sh-leading-plus.mk revision 1.5
      1  1.5  rillig # $NetBSD: sh-leading-plus.mk,v 1.5 2023/01/19 19:55:27 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for shell commands preceded by a '+', to run them even if
      4  1.2  rillig # the command line option -n is given.
      5  1.1  rillig 
      6  1.4  rillig .MAKEFLAGS: -n
      7  1.4  rillig 
      8  1.1  rillig all:
      9  1.3  rillig 	@echo 'this command is not run'
     10  1.3  rillig 	@+echo 'this command is run'
     11  1.5  rillig 
     12  1.5  rillig 	# Since 2023-01-17, the leading '@', '+' and '-' may contain
     13  1.5  rillig 	# whitespace, for compatibility with GNU make.
     14  1.5  rillig 	+ + + @echo 'whitespace in leading part'
     15