Home | History | Annotate | Line # | Download | only in unit-tests
deptgt.mk revision 1.4
      1  1.4  rillig # $NetBSD: deptgt.mk,v 1.4 2020/09/14 18:21:26 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for special targets like .BEGIN or .SUFFIXES in dependency
      4  1.2  rillig # declarations.
      5  1.1  rillig 
      6  1.1  rillig # TODO: Implementation
      7  1.1  rillig 
      8  1.3  rillig # Just in case anyone tries to compile several special targets in a single
      9  1.3  rillig # dependency line: That doesn't work, and make immediately rejects it.
     10  1.3  rillig .SUFFIXES .PHONY: .c.o
     11  1.3  rillig 
     12  1.4  rillig # Keyword "parse.c:targets"
     13  1.4  rillig #
     14  1.4  rillig # The following lines demonstrate how 'target' is set and reset during
     15  1.4  rillig # parsing of dependencies.  To see it in action, set breakpoints in:
     16  1.4  rillig #
     17  1.4  rillig #	ParseDoDependency	at the beginning
     18  1.4  rillig #	ParseFinishLine		at "targets = NULL"
     19  1.4  rillig #	Parse_File		at "Lst_Free(targets)"
     20  1.4  rillig #	Parse_File		at "targets = Lst_Init()"
     21  1.4  rillig #	Parse_File		at "!inLine"
     22  1.4  rillig #
     23  1.4  rillig target1 target2: sources
     24  1.4  rillig 	: command1
     25  1.4  rillig 	: command2
     26  1.4  rillig VAR=value
     27  1.4  rillig 	: command3
     28  1.4  rillig 
     29  1.1  rillig all:
     30  1.1  rillig 	@:;
     31