-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (32 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
TEST_BINARIES = tests/wavecar-show
test: $(TEST_BINARIES)
$(TEST_BINARIES): include/Wavecar.hpp
CXXFLAGS = -g \
-D_GLIBCXX_ASSERTIONS \
-D_FORTIFY_SOURCE=2 \
-fmax-errors=1 \
-Werror \
-std=c++11 \
-pedantic \
--all-warnings \
-Wall \
-I include/ \
EMACSQ = emacs -q --batch
include/Wavecar.hpp: README.org
$(EMACSQ) $< \
--eval "(require 'org)" \
--eval "(org-babel-tangle)" \
.deps/htmlize/htmlize.el:
mkdir -p $(@D)
git clone https://github.com/hniksic/emacs-htmlize $(@D)
README.html: README.org .deps/htmlize/htmlize.el
$(EMACSQ) $< \
--load .deps/htmlize/htmlize.el \
--eval "(require 'org)" \
--eval "(setq org-src-fontify-natively t)" \
--eval "(setq org-src-fontify-natively t)" \
--eval "(setq org-src-tab-acts-natively t)" \
--eval "(load-theme 'tsdh-light)" \
--eval "(org-html-export-to-html)" \
index.html: README.html
mv $< $@