xref: /freebsd/contrib/bmake/unit-tests/deptgt-interrupt.mk (revision 643ac419fafba89f5adda0e0ea75b538727453fb)
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