From 6897c0ae70892e40fd7603e4d00662038c01a82d Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 4 Oct 2021 20:37:50 +0200 Subject: add checks for consistency It works ok, but man, git is good --- exp/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'exp/Makefile') diff --git a/exp/Makefile b/exp/Makefile index a5b4864..aaf377c 100644 --- a/exp/Makefile +++ b/exp/Makefile @@ -1,6 +1,7 @@ REPO_URL := https://club1.fr/~nicolas/git/dna-backup/ -export MAX_VERSION ?= 3 +export DNA_BACKUP ?= ../dna-backup +export MAX_VERSION ?= 5 export COMMITS ?= commits export BACKUP ?= backup export DIFFS ?= diffs @@ -47,7 +48,7 @@ results: backup run | sort -k2 \ > $@ -run: $(COMMITS) ../dna-backup | $(DATADIRS) +run: $(COMMITS) $(DNA_BACKUP) | $(DATADIRS) rm -rf $(DATADIRS:%=%/*) ./exp.sh touch $@ @@ -55,8 +56,8 @@ run: $(COMMITS) ../dna-backup | $(DATADIRS) backup diffs: mkdir $@ -../dna-backup: .FORCE - @$(MAKE) -C .. --no-print-directory dna-backup +$(DNA_BACKUP): .FORCE + @$(MAKE) -C $(@D) --no-print-directory $(@F) $(COMMITS): | repo git $(GITC) log --reverse --no-merges --pretty=tformat:"%H %as" \ @@ -74,7 +75,7 @@ clean: mostlyclean rm -f $(COMMITS) mostlyclean: resultsclean - rm -rf $(DATADIRS) versions + rm -rf $(DATADIRS) versions run resultsclean: rm -f results summary.csv $(SIZEFILES) -- cgit v1.2.3