long04u

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

TXT
37
字号
#
#  LONGFILE TEST 04U
#  Test that paths with spaces work fine in dependency 
#  search paths. Unix path separators.
#

.EXTENSIONS: .out .txt

PATHS = "Test Path";Another" Pa"th;
FILES = "Test Path/Long Filename.out" 
FILES+= "Another Path/Long Filename.out"

.txt: $(PATHS)

.txt.out:
    cp "$[@" "$^@"

test: .symbolic create $(FILES) clean    

create: .symbolic
    -mkdir "Test Path"
    @echo Creating <<"Test Path/Long Filename.txt"
OK
<< keep
    -mkdir "Another Path"
    @echo Creating <<"Another Path/Long Filename.txt"
OK
<< keep

clean: .symbolic
    -rm "Test Path/Long Filename.txt"
    -rm "Another Path/Long Filename.txt"
    -rm "Test Path/Long Filename.out"
    -rm "Another Path/Long Filename.out"
    -rmdir "Test Path"
    -rmdir "Another Path"

⌨️ 快捷键说明

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