Skip to content

Commit

Permalink
EinsteinExact: Don't create *.out file until Kranc has finished succe…
Browse files Browse the repository at this point in the history
…ssfully
  • Loading branch information
eschnett committed Jul 24, 2015
1 parent 2d7d922 commit 6f72ac8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions m/Makefile
@@ -1,6 +1,12 @@
all: EinsteinExact.out
# Don't create a *.out file until Kranc has finished successfully.
# This way, one can simply re-run "make" when Kranc is interrupted or
# reports an error.
%.out: %.m Metrics/*.m Metrics/*/*.m
../../Kranc/Bin/kranc $*.m 2>&1 && (cd .. && git apply m/docfix.patch) | tee $*.out
rm -f $*.out
{ ../../Kranc/Bin/kranc $*.m && \
(cd .. && git apply m/docfix.patch); } 2>&1 | tee $*.err && \
mv $*.err $*.out
clean:
rm -f EinsteinExact.out
rm -f EinsteinExact.out EinsteinExact.err
.PHONY: all clean

0 comments on commit 6f72ac8

Please sign in to comment.