Skip to content

Commit 87092d4

Browse files
committed
Makefile add variable for experiment number
1 parent 6bacd33 commit 87092d4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

vXXX/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
all: build/vXXX.pdf
1+
NUMBER = XXX
2+
3+
all: build/v$(NUMBER).pdf
24

35
# hier Python-Skripte:
46
build/plot.pdf: plot.py ../matplotlibrc ../header-matplotlib.tex | build
@@ -8,9 +10,9 @@ build/plot.pdf: plot.py ../matplotlibrc ../header-matplotlib.tex | build
810
TEXINPUTS=$$(pwd)/..: MATPLOTLIBRC=../matplotlibrc python plot.py
911

1012
# hier weitere Abhängigkeiten für build/vXXX.pdf deklarieren:
11-
build/vXXX.pdf: build/plot.pdf
13+
build/v$(NUMBER).pdf: build/plot.pdf
1214

13-
build/vXXX.pdf: FORCE | build
15+
build/v$(NUMBER).pdf: FORCE | build
1416
# to find header and bib files in the main directory
1517
TEXINPUTS=..: \
1618
BIBINPUTS=..: \
@@ -20,7 +22,7 @@ build/vXXX.pdf: FORCE | build
2022
--output-directory=build \
2123
--interaction=nonstopmode \
2224
--halt-on-error \
23-
vXXX.tex
25+
v$(NUMBER).tex
2426

2527
build:
2628
mkdir -p build

0 commit comments

Comments
 (0)