xref: /freebsd/contrib/bmake/unit-tests/opt-tracefile.mk (revision 129043849f62f9cfa72f6fae68417d9995860f3f)
1# $NetBSD: opt-tracefile.mk,v 1.5 2021/12/06 22:35:20 rillig Exp $
2#
3# Tests for the command line option '-T', which in jobs mode appends a trace
4# record to a trace log whenever a job is started or completed.
5
6all: .PHONY
7	@rm -f opt-tracefile.log
8	@${MAKE} -f ${MAKEFILE} -j1 -Topt-tracefile.log trace
9	# Remove timestamps, process IDs and directory paths.
10	@awk '{ print $$2, $$3 }' opt-tracefile.log
11	@rm opt-tracefile.log
12
13trace dependency1 dependency2: .PHONY
14	@echo 'Making ${.TARGET} from ${.ALLSRC:S,^$,<nothing>,W}.'
15
16trace: dependency1 dependency2
17