Markdown and Makefile
Markdown
加粗
文本两边家 ** or __
代码
要将单词或短语表示为代码,请将其包裹在反引号 (`) 中
。asdasd
(飘号案件的英文模式)
表格
a | b |
---|---|
c | d |
代码块
asd asqwrqwfasf
有序列表
- First item
- Second item
- Third item
- Fourth item
- First item
- Second item
- Third item
- Fourth item
- First item
- Second item
- Third item
- Fourth item
- 【+,-,* 都可以】【并且可以不同层之间可以相互套用】
Makefile
手写文件 Makefile
chmod +x Makefile
make
make clean
注意,makefile中,要把后执行的指令放在最开始,先执行的指令放在结尾
makefile 可以接受输入参数
顺着定义变量,输入会顺着把变量进行替换
使用: NAME = asd
, $(NAME)
注意:target 中无法使用$(NAME)
简易方式
.PHONY:all
all:
指令
eg:
.PHONY:all
# NAME = \$(NAME)
NAME = sort_排序
all:
g++ \$(NAME).cpp -o qwe
./qwe