我有这个Makefile代码:如何拆分Makefile中使用的类似于路径名的字符串?
%.spf:
@echo [email protected];
runMe.sh $1 $2 $3 $4 $5;
的%.spf
的例子值是:
ros_apple/bananas_go_while_197815:123.0/monkey_110_worst_forever/thestar.spf
我会如何提取文件名的参数到变量?
$1 = ros_apple
$2 = bananas_go_while_197815:123.0
$3 = worst
$4 = 110
$5 = thestar
是否有可能留在Makefile文件中或者说我要创造一些Perl脚本,需要在[email protected]
并做内壳通话?
我只是将东西管入perl中并调用另一个shell – Gordon 2011-02-08 16:07:35