Lines Matching +full:in +full:- +full:and +full:- +full:around

1 # $NetBSD: cmd-interrupt.mk,v 1.5 2024/07/13 15:10:06 rillig Exp $
7 # would be newer than all of its sources and would therefore not be
8 # tried again in the next run.
20 all: clean-before
21 all: interrupt-ordinary
22 all: interrupt-phony
23 all: interrupt-precious
24 all: interrupt-compat
25 all: clean-after
27 clean-before clean-after: .PHONY
28 @rm -f cmd-interrupt-ordinary cmd-interrupt-phony
29 @rm -f cmd-interrupt-precious cmd-interrupt-compat
31 interrupt-ordinary:
32 @${.MAKE} ${MAKEFLAGS} -f ${MAKEFILE} cmd-interrupt-ordinary || true
33 # The ././ is necessary to work around the file cache.
34 @echo ${.TARGET}: ${exists(././cmd-interrupt-ordinary) :? error : ok }
36 interrupt-phony: .PHONY
37 @${.MAKE} ${MAKEFLAGS} -f ${MAKEFILE} cmd-interrupt-phony || true
38 # The ././ is necessary to work around the file cache.
39 @echo ${.TARGET}: ${exists(././cmd-interrupt-phony) :? ok : error }
41 interrupt-precious: .PRECIOUS
42 @${.MAKE} ${MAKEFLAGS} -f ${MAKEFILE} cmd-interrupt-precious || true
43 # The ././ is necessary to work around the file cache.
44 @echo ${.TARGET}: ${exists(././cmd-interrupt-precious) :? ok : error }
46 interrupt-compat:
47 @${MAKE} -f ${MAKEFILE} cmd-interrupt-compat || true
48 @echo ${.TARGET} ${exists(././cmd-interrupt-compat) :? expected-fail : unexpected-ok }
50 cmd-interrupt-ordinary:
52 @kill -INT ${.MAKE.PID}
54 cmd-interrupt-phony: .PHONY
56 @kill -INT ${.MAKE.PID}
58 cmd-interrupt-precious: .PRECIOUS
60 @kill -INT ${.MAKE.PID}
62 # When the make process (and not the process group) is interrupted in compat
65 # the child command runs in the same process group as make itself. The child
66 # command then continues, and after sleeping a bit creates the target file.
67 cmd-interrupt-compat:
68 @kill -INT ${.MAKE.PID} && sleep 1 && > ${.TARGET}