Commit c5619435 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

algo/tests/Makefile: Execute the command only once

When git is not available or the current directory is not under a git, an
error message is displayed each time the command is launched.

Using $(shell ...) construct the command will be launched at the affectation
and not each time the variable is used.
parent ad7f126a
......@@ -23,7 +23,7 @@ EXCLUDE_SHOULD_VDJ=bug20151006-rc.should-vdj.fa cdr3-indels.should-vdj.fa ext-nu
SHOULD_VDJ_ARCHIVE:=$(filter-out $(addprefix should-vdj-tests/,$(EXCLUDE_SHOULD_VDJ)), $(SHOULD_VDJ))
DATE=$(shell date +%Y-%m-%d--%H:%M:%S)
GIT_SHA1=`git rev-parse --short HEAD || echo 'nogit'`
GIT_SHA1=$(shell git rev-parse --short HEAD || echo 'nogit')
Supports Markdown
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