freebsd-dev/contrib/bmake/unit-tests/opt-tracefile.mk
Simon J. Gerraty 129043849f Merge bmake-20211212
commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
2021-12-18 10:09:14 -08:00

17 lines
559 B
Makefile

# $NetBSD: opt-tracefile.mk,v 1.5 2021/12/06 22:35:20 rillig Exp $
#
# Tests for the command line option '-T', which in jobs mode appends a trace
# record to a trace log whenever a job is started or completed.
all: .PHONY
@rm -f opt-tracefile.log
@${MAKE} -f ${MAKEFILE} -j1 -Topt-tracefile.log trace
# Remove timestamps, process IDs and directory paths.
@awk '{ print $$2, $$3 }' opt-tracefile.log
@rm opt-tracefile.log
trace dependency1 dependency2: .PHONY
@echo 'Making ${.TARGET} from ${.ALLSRC:S,^$,<nothing>,W}.'
trace: dependency1 dependency2