-
-
Notifications
You must be signed in to change notification settings - Fork 578
/
Makefile
44 lines (37 loc) · 1.03 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
42
43
44
SRC_FILE=index.adoc
OUTPUT_FILE=index.html
all: clean html
.PHONY: test
test:
@npm test
@make html
@npm run lint-html
@npm run textlint
html:
@echo "Generate HTML..."
@npm run embed
@npm run build
@echo "Building asciidoc"
@./_tools/build.sh
@echo "Done! => ${OUTPUT_FILE}"
pdf:
@echo "Generate PDF..."
@npm run embed
@echo "Building asciidoc"
@bundle exec asciidoctor -a lang=en -a bookversion=`node ./_tools/cli-book-version.js` \
-a icons=font -a source-highlighter=coderay --backend docbook \
-o javascript-promise-book.xml ${SRC_FILE}
@./_tools/build_pdf.sh javascript-promise-book.xml
@echo "Done!"
pdf-note:
@echo "Generate PDF..."
@npm run embed
@echo "Building asciidoc"
@bundle exec asciidoctor -a lang=en -a icons=font -a source-highlighter=coderay --backend docbook \
-o javascript-promise-omake.xml Appendix-Note/readme.adoc
@./_tools/build_pdf.sh javascript-promise-omake.xml
@echo "Done!"
deploy:
@./_tools/deploy-gh-pages.sh
clean:
@rm -f {OUTPUT_FILE} javascript-promise-*.pdf javascript-promise-*.xml