Clearcase make 与 Gnu make 输出
Clearcase make vs Gnu make output
我有这个简单的 Makefile:
a:
touch a
b: a
touch b
all: b
touch myapp
make all
returns:
touch a
touch b
touch myapp
clearmake all
(或clearmake -C gnu all
)returns:
touch a
touch b
touch myapp
如何去掉不必要的换行符?
改变clearmake
(or clearmake -C gnu
)
输出的可能性不大
(-n
只打印命令,-s
不打印)
这给您留下了解决方法,例如:
clearmake all | grep -v '^$'
我有这个简单的 Makefile:
a:
touch a
b: a
touch b
all: b
touch myapp
make all
returns:
touch a
touch b
touch myapp
clearmake all
(或clearmake -C gnu all
)returns:
touch a
touch b
touch myapp
如何去掉不必要的换行符?
改变clearmake
(or clearmake -C gnu
)
(-n
只打印命令,-s
不打印)
这给您留下了解决方法,例如:
clearmake all | grep -v '^$'