freebsd-src/unit-tests/opt-touch.mk
Simon J. Gerraty 1b65f0bd2b Import bmake-20201117
o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
  checks in InitObjdir.  Explicit .OBJDIR target always allows
  read-only directory.

o Fix building and unit-tests on non-BSD.

o More code cleanup and refactoring.

o More unit tests
2020-11-20 03:54:37 +00:00

22 lines
480 B
Makefile

# $NetBSD: opt-touch.mk,v 1.4 2020/11/14 14:13:09 rillig Exp $
#
# Tests for the -t command line option.
.MAKEFLAGS: -t opt-touch-phony opt-touch-join opt-touch-use opt-touch-make
opt-touch-phony: .PHONY
: Making $@.
opt-touch-join: .JOIN
: Making $@.
opt-touch-use: .USE
: Making use of $@.
opt-touch-make: .MAKE
: Making $@.
.END:
@files=$$(ls opt-touch-* 2>/dev/null | grep -v -e '\.' -e '\*'); \
[ -z "$$files" ] || { echo "created files: $$files" 1>&2; exit 1; }