xref: /freebsd/contrib/bmake/unit-tests/opt-touch.mk (revision e2eeea75eb8b6dd50c1298067a0655880d186734)
1*e2eeea75SSimon J. Gerraty# $NetBSD: opt-touch.mk,v 1.4 2020/11/14 14:13:09 rillig Exp $
22c3632d1SSimon J. Gerraty#
32c3632d1SSimon J. Gerraty# Tests for the -t command line option.
42c3632d1SSimon J. Gerraty
5*e2eeea75SSimon J. Gerraty.MAKEFLAGS: -t opt-touch-phony opt-touch-join opt-touch-use opt-touch-make
62c3632d1SSimon J. Gerraty
7*e2eeea75SSimon J. Gerratyopt-touch-phony: .PHONY
8*e2eeea75SSimon J. Gerraty	: Making $@.
9*e2eeea75SSimon J. Gerraty
10*e2eeea75SSimon J. Gerratyopt-touch-join: .JOIN
11*e2eeea75SSimon J. Gerraty	: Making $@.
12*e2eeea75SSimon J. Gerraty
13*e2eeea75SSimon J. Gerratyopt-touch-use: .USE
14*e2eeea75SSimon J. Gerraty	: Making use of $@.
15*e2eeea75SSimon J. Gerraty
16*e2eeea75SSimon J. Gerratyopt-touch-make: .MAKE
17*e2eeea75SSimon J. Gerraty	: Making $@.
18*e2eeea75SSimon J. Gerraty
19*e2eeea75SSimon J. Gerraty.END:
20*e2eeea75SSimon J. Gerraty	@files=$$(ls opt-touch-* 2>/dev/null | grep -v -e '\.' -e '\*'); \
21*e2eeea75SSimon J. Gerraty	[ -z "$$files" ] || { echo "created files: $$files" 1>&2; exit 1; }
22