-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
41 lines (34 loc) · 908 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
init:
git remote add gitee https://gitee.com/ahuigo/all.git
.PHONY: config
config:
echo ln ~/.config
#ln -s `pwd`/config/* ~/.config/
sh conf/install-conf.sh
.PHONY: conf
conf:
ln -s `pwd`/tool/pre-commit ~/.git/hooks/pre-commit
ln -s `pwd`/tool/pre-commit ~/www/.git/modules/a/hooks/pre-commit
#ln -s `pwd`/tool/pre-commit ~/www/a/.git/hooks/pre-commit
ln -s `pwd`/conf/.gitconfig ~/
echo:
echo abc
define indexmd
---
title: 递归树法
date: 2017-11-11
---
# 递归树法证明
![proof](/img/algo/master-theorem-tree.png)
endef
export indexmd
.PHONY: tpl
tpl:
set -x
mkdir -p tpl/post tpl/img/{algo,ico} tpl/tool
cp -r README.md assets index.html tpl
#cp -r 404.html atom.xml md.html tpl
#cp -r img/ico/{twitter.png,weibo.png} tpl/img/ico
cp tool/gen-postdir.py tpl/tool
echo "$$indexmd" > tpl/post/algo.md
echo "# Index\n- 2021-01-01 [复杂度证明](/b/algo)" > tpl/index.md