Commit e7c6e658 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: create ready file only when experiment was successful

parent a71270c0
...@@ -12,9 +12,9 @@ BUILDDIR := build ...@@ -12,9 +12,9 @@ BUILDDIR := build
OUTDIR := out OUTDIR := out
GUESTS_TARS := $(addprefix $(BUILDDIR)/,$(addsuffix .tar, $(GUESTS))) GUESTS_TARS := $(addprefix $(BUILDDIR)/,$(addsuffix .tar, $(GUESTS)))
EXPERIMENTS_OUTPUTS := $(addprefix $(OUTDIR)/,$(EXPERIMENTS)) EXPERIMENTS_READY := $(addprefix $(OUTDIR)/,$(addsuffix /ready,$(EXPERIMENTS)))
all: $(GUESTS_TARS) $(EXPERIMENTS_OUTPUTS) all: $(GUESTS_TARS) $(EXPERIMENTS_READY)
clean: clean:
rm -rf $(BUILDDIR) $(OUTDIR) rm -rf $(BUILDDIR) $(OUTDIR)
...@@ -22,10 +22,9 @@ clean: ...@@ -22,10 +22,9 @@ clean:
####################################### #######################################
# Running experiments # Running experiments
run: $(EXPERIMENTS) $(OUTDIR)/%/ready: experiments/%.sh $(GUESTS_TARS)
$(OUTDIR)/%: experiments/%.sh $(GUESTS_TARS)
bash $< bash $<
touch $@
####################################### #######################################
# Guest Tars # Guest Tars
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment