From 66c3d99f209ef250be212c43850e7c113994bc67 Mon Sep 17 00:00:00 2001 From: maier Date: Thu, 28 Feb 2013 21:35:59 +0000 Subject: [PATCH] Small improvement git-svn-id: https://svn.dealii.org/branches/branch_cmake@28651 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/GNUmakefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/deal.II/GNUmakefile b/deal.II/GNUmakefile index 042d420fe7..72f058eecf 100644 --- a/deal.II/GNUmakefile +++ b/deal.II/GNUmakefile @@ -52,16 +52,20 @@ cmake: TMPDIR=/tmp CMAKE=cmake -random:= $(shell echo "$$RANDOM$$RANDOM") -builddir:= "$(TMPDIR)"/deal-build.$(random) -installdir:= "$(TMPDIR)"/deal-install.$(random) +date:= $(shell date +%s) +random:=$(shell echo "$$RANDOM") +testdir:= "$(TMPDIR)"/deal-build-test.$(date)-$(random) +builddir:= $(testdir)/build +installdir:= $(testdir)/install .PHONY: build-test build-test: @mkdir -p $(builddir) @mkdir -p $(installdir) - @cd $(builddir) && "$(CMAKE)" -C "$(CONFIGFILE)" -DCMAKE_INSTALL_PREFIX=$(installdir) $(PWD) >$(builddir)/configuration.log 2>&1 - @cd $(builddir) && make $(MAKEOPTS) install >$(builddir)/build.log 2>&1 + @cd $(builddir) && "$(CMAKE)" -C "$(CONFIGFILE)" -DCMAKE_INSTALL_PREFIX=$(installdir) $(PWD) >$(testdir)/configure.log 2>&1 + @cp $(builddir)/summary.log $(testdir) @cd $(builddir) && make log >/dev/null 2>&1 + @cp $(builddir)/cmake.log $(testdir) + @cd $(builddir) && make $(MAKEOPTS) install >$(testdir)/build.log 2>&1 -- 2.39.5