-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
24 lines (20 loc) · 721 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
# @author YuHui([email protected])
# @date 2017/12/21
# 避免跟本地的命令重复
.PHONY doc
srcFiles := $(shell echo js/*.js)
src/%.txt:
echo $* > $@
doc:
rm -rf ./docs/api
mkdir -p ./docs/api
./node_modules/.bin/jsdoc2md -f ./src/utils/dom.js > ./docs/api/dom.md
./node_modules/.bin/jsdoc2md -f ./src/events/events.js > ./docs/api/events.md
./node_modules/.bin/jsdoc2md -f ./src/utils/guid.js > ./docs/api/guid.md
./node_modules/.bin/jsdoc2md -f ./src/utils/obj.js > ./docs/api/obj.md
./node_modules/.bin/jsdoc2md -f ./src/utils/to-title-case.js > ./docs/api/to-title-case.md
./node_modules/.bin/jsdoc2md -f ./src/player.js > ./docs/api/player.md
clean:
rm -rf ./docs/api
rm -rf ./dist
rm -rf ./lib