From 87092d4602f952ed238936992f39fdb6ee8cf9be Mon Sep 17 00:00:00 2001 From: chrbeckm Date: Sat, 26 Jul 2025 17:10:43 +0200 Subject: [PATCH] Makefile add variable for experiment number --- vXXX/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vXXX/Makefile b/vXXX/Makefile index 4df4bd6..a57aafb 100644 --- a/vXXX/Makefile +++ b/vXXX/Makefile @@ -1,4 +1,6 @@ -all: build/vXXX.pdf +NUMBER = XXX + +all: build/v$(NUMBER).pdf # hier Python-Skripte: build/plot.pdf: plot.py ../matplotlibrc ../header-matplotlib.tex | build @@ -8,9 +10,9 @@ build/plot.pdf: plot.py ../matplotlibrc ../header-matplotlib.tex | build TEXINPUTS=$$(pwd)/..: MATPLOTLIBRC=../matplotlibrc python plot.py # hier weitere Abhängigkeiten für build/vXXX.pdf deklarieren: -build/vXXX.pdf: build/plot.pdf +build/v$(NUMBER).pdf: build/plot.pdf -build/vXXX.pdf: FORCE | build +build/v$(NUMBER).pdf: FORCE | build # to find header and bib files in the main directory TEXINPUTS=..: \ BIBINPUTS=..: \ @@ -20,7 +22,7 @@ build/vXXX.pdf: FORCE | build --output-directory=build \ --interaction=nonstopmode \ --halt-on-error \ - vXXX.tex + v$(NUMBER).tex build: mkdir -p build