upd04

来自「开放源码的编译器open watcom 1.6.0版的源代码」· 代码 · 共 51 行

TXT
51
字号
#
#   upd04   - test that .CONTINUE really aborts an entire sub-tree if there
#           is an error
#

.CONTINUE

all : setup targa targb clean .symbolic
    @%null

setup : .symbolic
!ifdef __UNIX__
    @echo "Should get Error(E42) on (upd04a1) and (upd04b1.d)"
!else
    @echo Should get Error(E42) on (upd04a1) and (upd04b1.d)
!endif
    @wtouch upd04b1.1 upd04b2.2

clean : .symbolic
    @rm -f upd04a2 upd04b1.1 upd04b2.2 upd04b2.d

#
# example using explicit rules
#

targa : upd04a1 upd04a2
    %abort

upd04a1 :
    @$(mkerr)

upd04a2 :
    @wtouch upd04a2


#
# example using implicit rules
#

.extensions:
.extensions: .d .1 .2

.1.d :
    @$(mkerr)

.2.d :
    @wtouch $^@

targb : upd04b1.d upd04b2.d
    @%abort

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?