forked from EzoeRyou/cpp17book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (20 loc) · 806 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
all : book
clean :
rm -f index.html
rm -f bin/sample-code-checker
test : cpptest texttest
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++14 --pedantic-errors -Wall -pthread -O2 -o bin/sample-code-checker bin/sample-code-checker.cpp
book : index.html
index.html : *.md style.css
pandoc -s --toc --toc-depth=6 --mathjax -o index.html -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