forked from EzoeRyou/cpp-intro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (22 loc) · 1013 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
all : book
clean :
rm -f index.html
rm -f bin/sample-code-checker
test : cpptest
texttest : *.md
textlint -f unix *.md
cpptest : test-tool
bin/sample-code-checker *.md
retest : test-tool
bin/sample-code-checker retest /tmp/sample-code-checker/*.cpp
test-tool : bin/sample-code-checker
bin/sample-code-checker : bin/sample-code-checker.cpp
g++ -D _ISOC11_SOURCE -std=c++17 --pedantic-errors -Wall -pthread -O2 -o bin/sample-code-checker bin/sample-code-checker.cpp
book : docs/index.html
docs/index.html : *.md style.css
pandoc -s --toc --toc-depth=6 "--mathjax=https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML" -o $@ -H style.css pandoc_title_block *-*.md
filter.json : *.md style.css
pandoc -t json -s --toc --toc-depth=6 --mathjax -o $@ -H style.css pandoc_title_block *-*.md
index.md : *.md
pandoc -s --toc --toc-depth=6 --mathjax -o index.md -H style.css pandoc_title_block *-*.md
.PHONY : all book clean test test-tool texttest cpptest retest