Commit 8605fe62 authored by Stefan Tauner's avatar Stefan Tauner
Browse files

test set: if cfg exists at make time already then touch it

In the usual scenario no netlist is updated or at least does not require
the FIJI configuration to be edited again so the modification time check
that make does is actually too much and causes a large number of
FIJI setup instances to run in certain situations unnecessarily.
However, this hides errors of FIJI Setup as well.
parent b3e4af6c
...@@ -65,9 +65,11 @@ help : ...@@ -65,9 +65,11 @@ help :
# ---------------------------------------------------------------- Setup # ---------------------------------------------------------------- Setup
$(CONFIGURATIONS): $(CFGDIR)/%.cfg : $(NETLISTS_DIR)/%.v $(CONFIGURATIONS): $(CFGDIR)/%.cfg : $(NETLISTS_DIR)/%.v
@echo -ne "Configuring $(notdir $(basename $<)) ...\r\e[$(STAT_COLS)C" @-[ -e "$@" ] && touch "$@" || { \
@perl $(PERL_DBG) ../../bin/fiji_setup.pl -n "$<" -s "$@" > /dev/null && echo -e "[\e[32mOK\e[0m]" || \ echo -ne "Configuring $(notdir $(basename $<)) ...\r\e[$(STAT_COLS)C" ; \
{ echo -e "[\e[31mFAILED\e[0m]" ; } perl $(PERL_DBG) ../../bin/fiji_setup.pl -n "$<" -s "$@" > /dev/null && echo -e "[\e[32mOK\e[0m]" || \
{ echo -e "[\e[31mFAILED\e[0m]" ; } \
}
# ------------------------------------------------------ Instrumentation # ------------------------------------------------------ Instrumentation
......
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