freebsd-dev/contrib/bmake/unit-tests/deptgt-interrupt.mk

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
296 B
Makefile
Raw Normal View History

# $NetBSD: deptgt-interrupt.mk,v 1.4 2022/01/22 21:50:41 rillig Exp $
#
# Tests for the special target .INTERRUPT in dependency declarations, which
# collects commands to be run when make is interrupted while building another
# target.
all:
@kill -INT ${.MAKE.PID}
.INTERRUPT:
@echo 'Ctrl-C'