[brlcad-commits] SF.net SVN: brlcad: [31831] brlcad/trunk
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2008-07-15 04:22:48
|
Revision: 31831 http://brlcad.svn.sourceforge.net/brlcad/?rev=31831&view=rev Author: brlcad Date: 2008-07-14 21:22:57 -0700 (Mon, 14 Jul 2008) Log Message: ----------- make the reported compilation time reset every time 'make' is invoked so that the numbers are a little more meaningful for users pulling a dist and for partial recompiles. Modified Paths: -------------- brlcad/trunk/Makefile.am brlcad/trunk/include/conf/Makefile.am Modified: brlcad/trunk/Makefile.am =================================================================== --- brlcad/trunk/Makefile.am 2008-07-15 02:38:17 UTC (rev 31830) +++ brlcad/trunk/Makefile.am 2008-07-15 04:22:57 UTC (rev 31831) @@ -434,7 +434,7 @@ @$(ECHO) @if test "x$(MAKECMDGOALS)" = "xall-am" -o "x$(.TARGETS)" = "xall-am" -o "x$(MAKECMDGOALS)" = "xfast" -o "x$(.TARGETS)" = "xfast" ; then \ $(ECHO) $(ECHO_N) "Elapsed compilation time: " ;\ - sh $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/DATE` ;\ + sh $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/TS` ;\ $(ECHO) $(ECHO_N) "Elapsed time since configuration: " ;\ sh $(top_srcdir)/sh/elapsed.sh ${CONFIG_TS} ;\ $(ECHO) "---" ;\ @@ -442,7 +442,7 @@ $(ECHO) "Run 'make benchmark' to run the BRL-CAD Benchmark Suite" ;\ elif test "x$(MAKECMDGOALS)" = "xinstall-am" -o "x$(.TARGETS)" = "xinstall-am" ; then \ $(ECHO) $(ECHO_N) "Elapsed installation time: " ;\ - sh $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/DATE` ;\ + sh $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/TS` ;\ $(ECHO) $(ECHO_N) "Elapsed time since configuration: " ;\ sh $(top_srcdir)/sh/elapsed.sh ${CONFIG_TS} ;\ $(ECHO) "---" ;\ @@ -458,7 +458,7 @@ $(ECHO) "$${separator}****" ;\ elif test "x$(MAKECMDGOALS)" = "x" -a "x$(.TARGETS)" = "x" ; then \ $(ECHO) $(ECHO_N) "Elapsed time: " ;\ - sh $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/DATE` ;\ + sh $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/TS` ;\ $(ECHO) $(ECHO_N) "Elapsed time since configuration: " ;\ sh $(top_srcdir)/sh/elapsed.sh ${CONFIG_TS} ;\ $(ECHO) "---" ;\ Modified: brlcad/trunk/include/conf/Makefile.am =================================================================== --- brlcad/trunk/include/conf/Makefile.am 2008-07-15 02:38:17 UTC (rev 31830) +++ brlcad/trunk/include/conf/Makefile.am 2008-07-15 04:22:57 UTC (rev 31831) @@ -15,12 +15,19 @@ USER: $(top_builddir)/include/brlcad_config.h echo "\"`whoami`\"" > $@ +# updated every time make is invoked for timing the compile +TS: + echo "\"`LANG=C date -R 2>/dev/null || date +'%a, %d %b %Y %H:%M:%S %z' 2>/dev/null || date`\"" > $@ + +.PHONY: TS + # this causes them to be dependencies on the 'all' target BUILT_SOURCES = \ COUNT \ DATE \ HOST \ PATH \ + TS \ USER EXTRA_DIST = \ @@ -36,11 +43,13 @@ DATE \ HOST \ PATH \ + TS \ USER DISTCLEANFILES = \ $(CLEANFILES) \ - COUNT + COUNT \ + TS all-am: $(BUILT_SOURCES) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |