aboutsummaryrefslogtreecommitdiff
path: root/exp/Makefile
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-09 14:08:34 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-09 14:10:21 +0200
commit64e858b2699f6807cf1cdd7903fe2cf33f3b0ae2 (patch)
treea1767f63f527364380bf5432c9e9625c7e23a4c6 /exp/Makefile
parent2df30c27ead445724d066fc7df301be4d22f3c44 (diff)
downloaddna-backup-64e858b2699f6807cf1cdd7903fe2cf33f3b0ae2.tar.gz
dna-backup-64e858b2699f6807cf1cdd7903fe2cf33f3b0ae2.zip
factorize dna backup runs in exp
Diffstat (limited to 'exp/Makefile')
-rw-r--r--exp/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/exp/Makefile b/exp/Makefile
index 4df2bb6..f49d2f1 100644
--- a/exp/Makefile
+++ b/exp/Makefile
@@ -6,13 +6,14 @@ SHELL := /bin/bash
export LC_NUMERIC :=
export DNA_BACKUP ?= ../dna-backup
+export DNA_PARAMS ?= dna_params
export MAX_VERSION ?= 5
export COMMITS ?= commits
-export DNA_4K ?= dna_4k
-export DNA_8K ?= dna_8k
-export DIFFS ?= diffs
+DNA_4K ?= dna_4k
+DNA_8K ?= dna_8k
NOPACK ?= nopack
export GIT_NOPACK ?= $(abspath $(NOPACK))
+export DIFFS ?= diffs
export REPO_PATH ?= repo
export GIT_PATH ?= $(abspath git)
@@ -64,11 +65,15 @@ $(DNADIRS:%=%.size) $(NOPACK).size: %.size: %.versions run
| sort -k2 \
> $@
-run: $(COMMITS) $(DNA_BACKUP) | $(DATADIRS) $(NOPACK).versions
+run: $(COMMITS) $(DNA_BACKUP) $(DNA_PARAMS) | $(DATADIRS) $(NOPACK).versions
rm -rf $(DATADIRS:%=%/*)
./exp.sh
touch $@
+$(DNA_PARAMS):
+ echo "$(DNA_4K) -c 4096" >> $@
+ echo "$(DNA_8K) -c 8192" >> $@
+
$(DATADIRS) $(NOPACK).versions:
mkdir $@
@@ -92,7 +97,7 @@ clean: mostlyclean
mostlyclean: resultsclean
rm -rf $(DATADIRS) $(DATADIRS:%=%.versions)
- rm -f run $(DATADIRS:%=%.results)
+ rm -f run $(DATADIRS:%=%.results) $(DNA_PARAMS)
resultsclean:
rm -f summary.csv $(SIZEFILES)