summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ce36bd1..4b3b255 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
+PRE=au_BentBisballeNyeng_
all: A1
A1:
- zip au_BentBisballeNyeng_a1.zip a1/hello.cc
- zip au_BentBisballeNyeng_a1.zip a1/hello-cpp20.cc
- zip au_BentBisballeNyeng_a1.zip a1/Makefile
- xelatex --jobname=au_BentBisballeNyeng.tex a1/exercise.tex
+ zip ${PRE}$@.zip a1/hello.cc
+ zip ${PRE}$@.zip a1/hello-cpp20.cc
+ zip ${PRE}$@.zip a1/Makefile
+ xelatex -halt-on-error -jobname=${PRE}$@ -auxdir=build a1/exercise.tex
+ rm -f ${PRE}$@.aux ${PRE}$@.log
clean:
- rm -f au_BentBisballeNyeng*.log
- rm -f au_BentBisballeNyeng*.aux
+ rm -f ${PRE}*