xref: /freebsd/contrib/bmake/unit-tests/deptgt-interrupt.mk (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1# $NetBSD: deptgt-interrupt.mk,v 1.4 2022/01/22 21:50:41 rillig Exp $
2#
3# Tests for the special target .INTERRUPT in dependency declarations, which
4# collects commands to be run when make is interrupted while building another
5# target.
6
7all:
8	@kill -INT ${.MAKE.PID}
9
10.INTERRUPT:
11	@echo 'Ctrl-C'
12