]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Externalize make file for Poisson example.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 1998 17:20:29 +0000 (17:20 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 1998 17:20:29 +0000 (17:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@128 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/Makefile
tests/big-tests/Makefile

index 7ecbf0cb94f782ceddae6e8d7e7aad5de75a93c1..4ecf11f9e0766404c7ceb2fb852fc48fc24aa8da 100644 (file)
@@ -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
index 7ecbf0cb94f782ceddae6e8d7e7aad5de75a93c1..4ecf11f9e0766404c7ceb2fb852fc48fc24aa8da 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.