From 59b9aba19dba5d329104fce45cbdc0f452ea1433 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 2 Apr 1998 17:20:29 +0000 Subject: [PATCH] Externalize make file for Poisson example. git-svn-id: https://svn.dealii.org/trunk@128 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/Attic/examples/Makefile | 11 ++++++++--- tests/big-tests/Makefile | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/deal.II/deal.II/Attic/examples/Makefile b/deal.II/deal.II/Attic/examples/Makefile index 7ecbf0cb94..4ecf11f9e0 100644 --- a/deal.II/deal.II/Attic/examples/Makefile +++ b/deal.II/deal.II/Attic/examples/Makefile @@ -43,11 +43,10 @@ dof/dof_test: dof/dof_test.o $(LIBFILES.g) @$(CXX) $(CXXFLAGS.g) -o $@ $< $(LIBS.g) -lg++ poisson/poisson: poisson/poisson.o $(LIBFILES.g) - @echo ================= Linking $@ - @$(CXX) $(CXXFLAGS.g) -g -o $@ $< ../../mia/control.o $(LIBS.g) -lg++ + @cd poisson ; make -run: run_grid_test run_dof_test +run: run_grid_test run_dof_test run_poisson_test run_grid_test: cd grid ; grid_test 4 ; mv grid.1 grid.4 @@ -60,11 +59,17 @@ run_dof_test: cd dof ; dof_test dof_test.prm cd dof ; gnuplot make_ps +run_poisson_test: + cd poisson ; make run + clean: cd grid ; rm -f grid.[1234] *.eps *.o *~ grid_test cd dof ; rm -f grid.* sparsity.* *.o *~ dof_test +.PHONY: run run_grid_test run_dof_test run_poisson_test clean + + #Rule to generate the dependency file. This file is #automagically remade whenever needed, i.e. whenever #one of the cc-/h-files changed. Make detects whether diff --git a/tests/big-tests/Makefile b/tests/big-tests/Makefile index 7ecbf0cb94..4ecf11f9e0 100644 --- a/tests/big-tests/Makefile +++ b/tests/big-tests/Makefile @@ -43,11 +43,10 @@ dof/dof_test: dof/dof_test.o $(LIBFILES.g) @$(CXX) $(CXXFLAGS.g) -o $@ $< $(LIBS.g) -lg++ poisson/poisson: poisson/poisson.o $(LIBFILES.g) - @echo ================= Linking $@ - @$(CXX) $(CXXFLAGS.g) -g -o $@ $< ../../mia/control.o $(LIBS.g) -lg++ + @cd poisson ; make -run: run_grid_test run_dof_test +run: run_grid_test run_dof_test run_poisson_test run_grid_test: cd grid ; grid_test 4 ; mv grid.1 grid.4 @@ -60,11 +59,17 @@ run_dof_test: cd dof ; dof_test dof_test.prm cd dof ; gnuplot make_ps +run_poisson_test: + cd poisson ; make run + clean: cd grid ; rm -f grid.[1234] *.eps *.o *~ grid_test cd dof ; rm -f grid.* sparsity.* *.o *~ dof_test +.PHONY: run run_grid_test run_dof_test run_poisson_test clean + + #Rule to generate the dependency file. This file is #automagically remade whenever needed, i.e. whenever #one of the cc-/h-files changed. Make detects whether -- 2.39.5