Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.4  rillig # $NetBSD: opt-touch.mk,v 1.4 2020/11/14 14:13:09 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the -t command line option.
      4  1.1  rillig 
      5  1.4  rillig .MAKEFLAGS: -t opt-touch-phony opt-touch-join opt-touch-use opt-touch-make
      6  1.1  rillig 
      7  1.3  rillig opt-touch-phony: .PHONY
      8  1.3  rillig 	: Making $@.
      9  1.3  rillig 
     10  1.3  rillig opt-touch-join: .JOIN
     11  1.3  rillig 	: Making $@.
     12  1.3  rillig 
     13  1.3  rillig opt-touch-use: .USE
     14  1.3  rillig 	: Making use of $@.
     15  1.3  rillig 
     16  1.4  rillig opt-touch-make: .MAKE
     17  1.4  rillig 	: Making $@.
     18  1.4  rillig 
     19  1.3  rillig .END:
     20  1.3  rillig 	@files=$$(ls opt-touch-* 2>/dev/null | grep -v -e '\.' -e '\*'); \
     21  1.3  rillig 	[ -z "$$files" ] || { echo "created files: $$files" 1>&2; exit 1; }
     22