[cig-commits] r21374 - seismo/3D/SPECFEM3D_GLOBE/trunk/src/create_header_file
elliott.sales.de.andrade at geodynamics.org
elliott.sales.de.andrade at geodynamics.org
Sat Feb 16 22:50:35 PST 2013
Author: elliott.sales.de.andrade
Date: 2013-02-16 22:50:34 -0800 (Sat, 16 Feb 2013)
New Revision: 21374
Modified:
seismo/3D/SPECFEM3D_GLOBE/trunk/src/create_header_file/rules.mk
Log:
Force Makefile error when xcreate_header_file fails.
xcreate_header_file doesn't exit with an error code, since the 'stop'
command doesn't seem to support an exit status. This causes make to
assume everything worked and try to compile the next file. If you didn't
compile anything already, then the compiler would fail to find
values_from_mesher.h. But if you compiled before, it'd use the old copy,
which is not what you'd want to happen.
Modified: seismo/3D/SPECFEM3D_GLOBE/trunk/src/create_header_file/rules.mk
===================================================================
--- seismo/3D/SPECFEM3D_GLOBE/trunk/src/create_header_file/rules.mk 2013-02-17 06:50:25 UTC (rev 21373)
+++ seismo/3D/SPECFEM3D_GLOBE/trunk/src/create_header_file/rules.mk 2013-02-17 06:50:34 UTC (rev 21374)
@@ -61,7 +61,9 @@
####
${OUTPUT}/values_from_mesher.h: $E/xcreate_header_file $B/DATA/Par_file
+ @-rm -f $@
$E/xcreate_header_file
+ @test -f $@
#######################################
More information about the CIG-COMMITS
mailing list