"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "unit-tests/cmd-interrupt.mk" between
bmake-20201101.tar.gz and bmake-20201117.tar.gz

About: bmake a BSD make tool (derived from NetBSD’s make).

cmd-interrupt.mk  (bmake-20201101):cmd-interrupt.mk  (bmake-20201117)
# $NetBSD: cmd-interrupt.mk,v 1.2 2020/08/28 18:16:22 rillig Exp $ # $NetBSD: cmd-interrupt.mk,v 1.3 2020/11/15 14:07:53 rillig Exp $
# #
# Tests for interrupting a command. # Tests for interrupting a command.
# #
# If a command is interrupted (usually by the user, here by itself), the # If a command is interrupted (usually by the user, here by itself), the
# target is removed. This is to avoid having an unfinished target that # target is removed. This is to avoid having an unfinished target that
# would be newer than all of its sources and would therefore not be # would be newer than all of its sources and would therefore not be
# tried again in the next run. # tried again in the next run.
# #
# This happens for ordinary targets as well as for .PHONY targets, even # This happens for ordinary targets as well as for .PHONY targets, even
# though the .PHONY targets usually do not correspond to a file. # though the .PHONY targets usually do not correspond to a file.
skipping to change at line 25 skipping to change at line 25
# that interrupting them does not leave an inconsistent state behind. # that interrupting them does not leave an inconsistent state behind.
# #
# See also: # See also:
# CompatDeleteTarget # CompatDeleteTarget
all: clean-before interrupt-ordinary interrupt-phony interrupt-precious clean-af ter all: clean-before interrupt-ordinary interrupt-phony interrupt-precious clean-af ter
clean-before clean-after: .PHONY clean-before clean-after: .PHONY
@rm -f cmd-interrupt-ordinary cmd-interrupt-phony cmd-interrupt-precious @rm -f cmd-interrupt-ordinary cmd-interrupt-phony cmd-interrupt-precious
interrupt-ordinary: .PHONY interrupt-ordinary:
@${.MAKE} ${MAKEFLAGS} -f ${MAKEFILE} cmd-interrupt-ordinary || true @${.MAKE} ${MAKEFLAGS} -f ${MAKEFILE} cmd-interrupt-ordinary || true
# The ././ is necessary to work around the file cache. # The ././ is necessary to work around the file cache.
@echo ${.TARGET}: ${exists(././cmd-interrupt-ordinary) :? error : ok } @echo ${.TARGET}: ${exists(././cmd-interrupt-ordinary) :? error : ok }
interrupt-phony: .PHONY interrupt-phony: .PHONY
@${.MAKE} ${MAKEFLAGS} -f ${MAKEFILE} cmd-interrupt-phony || true @${.MAKE} ${MAKEFLAGS} -f ${MAKEFILE} cmd-interrupt-phony || true
# The ././ is necessary to work around the file cache. # The ././ is necessary to work around the file cache.
@echo ${.TARGET}: ${exists(././cmd-interrupt-phony) :? error : ok } @echo ${.TARGET}: ${exists(././cmd-interrupt-phony) :? error : ok }
interrupt-precious: .PRECIOUS interrupt-precious: .PRECIOUS
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)