blob: 6ce8fd99464071316959441ecf09e3ec496859aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CARGS := -Wall -Werror -I.
CPPARGS := -Wall -Werror -I.
all: cpp-vector.pdf c_build/vectors
%.pdf: %.md
pandoc \
--latex-engine=xelatex \
--filter pandoc-include-code \
$< -o $@
c_build/%: %.c
mkdir -p c_build
gcc $(CARGS) $< -o $@
cpp_build/%: %.cpp
mkdir -p cpp_build
g++ $(CPPARGS) $< -o $@
|