Skip to content

Commit

Permalink
Issue #126: Do not run examples in the same directory concurrently.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Feb 27, 2020
1 parent e594a31 commit 24d7c44
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ else
cd admb-re/weights && $(ADMB_HOME)/admb$(EXT) $(OPTIONS) $@ && $(PROG) ./$@
endif

autodif: bigmin hemholtz io_examp normsim newt s1 autodif-simple simple2 simp1 struct oldstr
autodif: bigmin hemholtz io_examp newt autodif-simple struct

bigmin:
ifeq ($(CMDSHELL),cmd)
Expand Down Expand Up @@ -379,7 +379,7 @@ else
cd autodif/$@ && $(ADMB_HOME)/admb$(EXT) $(OPTIONS) $@.cpp userfun.cpp && $(PROG) ./$@
endif

mixture:
mixture: normsim
ifeq ($(CMDSHELL),cmd)
pushd autodif\\$@ && $(ADMB_HOME)\\admb $(OPTIONS) $@.cpp normaliz.cpp reset.cpp like.cpp savepar.cpp xinit.cpp nvarcal.cpp fcomp_m.cpp && $(PROG) $@ && popd
else
Expand All @@ -400,21 +400,21 @@ else
cd autodif/$@ && $(ADMB_HOME)/admb$(EXT) $(OPTIONS) $@.cpp && $(PROG) ./$@
endif

s1:
s1: simple2
ifeq ($(CMDSHELL),cmd)
pushd autodif\\simple && $(ADMB_HOME)\\admb $(OPTIONS) $@.cpp && $(PROG) $@ && popd
else
cd autodif/simple && $(ADMB_HOME)/admb$(EXT) $(OPTIONS) $@.cpp && $(PROG) ./$@
endif

autodif-simple:
autodif-simple: s1
ifeq ($(CMDSHELL),cmd)
pushd autodif\\simple && $(ADMB_HOME)\\admb $(OPTIONS) simple.cpp fcomp_s.cpp && $(PROG) simple && popd
else
cd autodif/simple && $(ADMB_HOME)/admb$(EXT) $(OPTIONS) simple.cpp fcomp_s.cpp && $(PROG) ./simple
endif

simple2:
simple2: simp1
ifeq ($(CMDSHELL),cmd)
pushd autodif\\simple && $(ADMB_HOME)\\admb $(OPTIONS) $@.cpp fcomp_s.cpp && $(PROG) $@ && popd
else
Expand All @@ -428,7 +428,7 @@ else
cd autodif/simple && $(ADMB_HOME)/admb$(EXT) $(OPTIONS) $@.cpp fcomp_s.cpp && $(PROG) ./$@
endif

struct:
struct: oldstr
ifeq ($(CMDSHELL),cmd)
pushd autodif\\$@ && $(ADMB_HOME)\\admb $(OPTIONS) $@.cpp && $(PROG) $@ && popd
else
Expand Down

0 comments on commit 24d7c44

Please sign in to comment.