summaryrefslogtreecommitdiffstats
path: root/vector/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vector/makefile')
-rw-r--r--vector/makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/vector/makefile b/vector/makefile
new file mode 100644
index 0000000..6ce8fd9
--- /dev/null
+++ b/vector/makefile
@@ -0,0 +1,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 $@