Skip to content

Commit 13e2a8e

Browse files
committed
simulation: docs: Makefile tweaks
1 parent 2b39949 commit 13e2a8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

simulation/docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ GIT_REV := $(shell git rev-parse HEAD)
5858
ifeq ($(shell git status --porcelain --untracked-files=no),)
5959
GIT_DIRTY_TRACKED :=
6060
else
61-
GIT_DIRTY_TRACKED := -dirty
61+
GIT_DIRTY_TRACKED := -$(shell git stash create)
6262
endif
6363

64-
## In some cases it's useful to keep logs.
64+
## In some cases it's useful to generate logs.
6565
LOG_VERBOSITY ?= 0
66-
66+
SEED ?= 0
6767
TAGGED_SIM_DATA = $(basename $@)-$(GIT_REV)$(GIT_DIRTY_TRACKED).json
68-
SHORT_LEIOS = cabal run ols -- sim --output-seconds="$(SIM_SECONDS)" --output-file="$(TAGGED_SIM_DATA)" short-leios --log-verbosity="$(LOG_VERBOSITY)"
68+
SHORT_LEIOS = cabal run ols -- sim --output-seconds="$(SIM_SECONDS)" --output-file="$(TAGGED_SIM_DATA)" short-leios --seed $(SEED) --log-verbosity="$(LOG_VERBOSITY)"
6969

7070
%/sim-data.json: %/config.yaml %/topology.yaml
7171
$(SHORT_LEIOS) -l "$(word 1, $^)" -t "$(word 2, $^)" +RTS -s

0 commit comments

Comments
 (0)