summaryrefslogtreecommitdiff
path: root/a6/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'a6/Makefile')
-rw-r--r--a6/Makefile29
1 files changed, 20 insertions, 9 deletions
diff --git a/a6/Makefile b/a6/Makefile
index 61ea860..bc38dd3 100644
--- a/a6/Makefile
+++ b/a6/Makefile
@@ -1,15 +1,26 @@
+TEX_FLAGS=-halt-on-error -file-line-error -interaction=batchmode
+TEX_NAME=au_BentBisballeNyeng_A6
+CXX_FLAGS=-g -O2 -fconcepts -fcoroutines -Wall -Werror -Wextra -Wconversion -std=c++20
+
all: noalloc pdf
noalloc: noalloc.cc Makefile
- g++ -g -O0 -Wall -Werror -Wextra -Wconversion -std=c++20 $< -o $@
+ g++ ${CXX_FLAGS} $< -o $@
+
+stack_new: stack_new.cc Makefile
+ g++ ${CXX_FLAGS} $< -o $@
+
+custom: custom.cc Makefile
+ g++ ${CXX_FLAGS} $< -o $@
+
+pdf: ${TEX_NAME}.pdf
-pdf: au_BentBisballeNyeng_A6.pdf
-au_BentBisballeNyeng_A6.bbl: au_BentBisballeNyeng_A6.bcf
- biber $<
+${TEX_NAME}.bbl: ${TEX_NAME}.bcf
+ biber --onlylog $<
-au_BentBisballeNyeng_A6.bcf: au_BentBisballeNyeng_A6.tex
- xelatex -halt-on-error $<
+${TEX_NAME}.bcf: ${TEX_NAME}.tex
+ xelatex --no-pdf --no-aux ${TEX_FLAGS} $<
-au_BentBisballeNyeng_A6.pdf: au_BentBisballeNyeng_A6.tex au_BentBisballeNyeng_A6.bbl
- xelatex -halt-on-error $<
- xelatex -halt-on-error $<
+${TEX_NAME}.pdf: ${TEX_NAME}.tex ${TEX_NAME}.bbl
+# xelatex --no-pdf ${TEX_FLAGS} $<
+ xelatex ${TEX_FLAGS} $<