mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
Features of interest: Allow setting target local variables (similar to gmake) In META_MODE .MAKE.META.CMP_FILTER can be used for filtering commands before comparion. contrib/bmake/mk/cc-wrap.mk is an example of using these See ChangeLog for the gory details.
12 lines
296 B
Makefile
12 lines
296 B
Makefile
# $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'
|