Home | History | Annotate | Line # | Download | only in unit-tests
directive-undef.mk revision 1.6
      1 # $NetBSD: directive-undef.mk,v 1.6 2020/12/13 01:07:54 rillig Exp $
      2 #
      3 # Tests for the .undef directive.
      4 #
      5 # See also:
      6 #	directive-misspellings.mk
      7 
      8 # As of 2020-07-28, .undef only undefines the first variable.
      9 # All further variable names are silently ignored.
     10 # See parse.c, string literal "undef".
     11 1=		1
     12 2=		2
     13 3=		3
     14 .undef 1 2 3
     15 .if ${1:U_}${2:U_}${3:U_} != _23
     16 .  warning $1$2$3
     17 .endif
     18 
     19 .undef				# oops: missing argument
     20 
     21 all:
     22 	@:;
     23