-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
41 lines (33 loc) · 1.08 KB
/
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
.PHONY: help
help:
@echo help - show this help
@echo revidx - build revidx
@echo revidx.extract - extract text from wiki pages
@echo revidx.build - build revidx from extracted text
@echo revidx.build.index - build reverse index only
@echo revidx.build.js - build js search script only
@echo revidx.build.commit - build and commit
@echo revidx.commit - commit the builds
@echo logo.build - build logo
.PHONY: revidx
revidx: revidx.extract revidx.build
.PHONY: revidx.extract
revidx.extract:
python devtools/search/extract_text.py
.PHONY: revidx.build
revidx.build: revidx.build.index revidx.build.js
.PHONY: revidx.build.index
revidx.build.index:
python devtools/search/build_revidx.py
python devtools/search/gen_json.py
.PHONY: revidx.build.js
revidx.build.js:
python devtools/search/build_jieba.py
.PHONY: revidx.build.commit
revidx.build.commit: revidx.build revidx.commit
.PHONY: revidx.commit
revidx.commit:
git add search/*
git commit -m "[build] /revidx: update"
logo.build: img/logo/build/*
python img/logo/build.py