Home | History | Annotate | Line # | Download | only in unit-tests
depsrc-ignore.mk revision 1.3
      1  1.3  rillig # $NetBSD: depsrc-ignore.mk,v 1.3 2020/08/29 15:06:33 rillig Exp $
      2  1.1  rillig #
      3  1.3  rillig # Tests for the special source .IGNORE in dependency declarations,
      4  1.3  rillig # which ignores any command failures for that target.
      5  1.3  rillig #
      6  1.3  rillig # Even though ignore-errors fails, the all target is still made.
      7  1.3  rillig # Since the all target is not marked with .IGNORE, it stops at the
      8  1.3  rillig # first failing command.
      9  1.3  rillig #
     10  1.3  rillig # XXX: The messages in the output are confusing.
     11  1.3  rillig # The "ignored" comes much too late to be related to the "false
     12  1.3  rillig # ignore-errors".
     13  1.3  rillig # The "continuing" is confusing as well since it doesn't answer the
     14  1.3  rillig # question "continuing with what?".
     15  1.3  rillig #
     16  1.3  rillig # Even more interestingly, enabling the debugging option -de changes
     17  1.3  rillig # the order in which the messages appear.  Now the "ignored" message
     18  1.3  rillig # is issued in the correct position.  The manual page even defines the
     19  1.3  rillig # buffering of debug_file and stdout, so there should be no variance.
     20  1.3  rillig 
     21  1.3  rillig #.MAKEFLAGS: -de
     22  1.3  rillig 
     23  1.3  rillig all: ignore-errors
     24  1.1  rillig 
     25  1.3  rillig ignore-errors: .IGNORE
     26  1.3  rillig 	@echo $@ begin
     27  1.3  rillig 	false $@
     28  1.3  rillig 	@echo $@ end
     29  1.1  rillig 
     30  1.1  rillig all:
     31  1.3  rillig 	@echo $@ begin
     32  1.3  rillig 	false $@
     33  1.3  rillig 	@echo $@ end
     34