diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-10-04 20:37:50 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-10-04 20:37:50 +0200 |
commit | 6897c0ae70892e40fd7603e4d00662038c01a82d (patch) | |
tree | c116766c1eb4ccd0187a56860100752c63295d9e /exp/Makefile | |
parent | b5842cb956aeac90bdf26a5ad26c86c594fe30ee (diff) | |
download | dna-backup-6897c0ae70892e40fd7603e4d00662038c01a82d.tar.gz dna-backup-6897c0ae70892e40fd7603e4d00662038c01a82d.zip |
add checks for consistency
It works ok, but man, git is good
Diffstat (limited to 'exp/Makefile')
-rw-r--r-- | exp/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
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) |