用户工具

站点工具


语法:makefile

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
语法:makefile [2026/10/13 22:06] – 外部编辑 127.0.0.1语法:makefile [2026/10/13 22:51] (当前版本) – 外部编辑 127.0.0.1
行 1: 行 1:
 # makefile # makefile
 ## - for ## - for
-<code c>+ 
 +```c
 NAME := a b c NAME := a b c
 run: run:
行 7: 行 8:
  echo $$tmp; \  echo $$tmp; \
  done  done
-</code>+``` 
  
 ## - 根据文件内容循环执行 ## - 根据文件内容循环执行
行 13: 行 15:
  
 输入文件: 输入文件:
-<code>+ 
 +```
 > cat gen.txt  > cat gen.txt 
 items = a b c items = a b c
-</code>+``` 
  
 Makefile文件: Makefile文件:
-<code cmake>+ 
 +```cmake
 run1: run1:
  @line=$$(head -n1 gen.txt); \  @line=$$(head -n1 gen.txt); \
行 45: 行 50:
  echo "process tile: $$tile"; \  echo "process tile: $$tile"; \
  done  done
-</code>+``` 
  
 执行结果: 执行结果:
-<code>+ 
 +```
 > make run1 > make run1
 process tile: a process tile: a
行 64: 行 71:
 > make run4 > make run4
 process tile: abc process tile: abc
-</code>+``` 
  
  
  
  
语法/makefile.1791900372.txt.gz · 最后更改: 由 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki