]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Be a bit more efficient by using assign-once variables.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 2010 19:27:10 +0000 (19:27 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 2010 19:27:10 +0000 (19:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@22797 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/doxygen/tutorial/Makefile

index 64c314d50344d75f6f279da3022efe0041183d32..2b0f0548c46419e7317636a55eb7c2a4cf0e0630 100644 (file)
@@ -6,29 +6,28 @@ include ../../../common/Make.global_options
 
 # plain names of those files that we shall treat. simply take all those
 # directories in examples/ that have a /doc subdirectory
-example-names = $(subst /doc,,    \
+example-names := $(subst /doc,,    \
                         $(shell cd $D/examples && echo */doc))
 
 
-
 # prefix names for generated intermediate files
-gen-example-names = $(addprefix generated/, $(example-names))
+gen-example-names  := $(addprefix generated/, $(example-names))
 
 # names of commented program files, plain files, and tocs for the commented
 # and commented and plain versions of the program as well as a combined one
-example-toc-prog   = $(addsuffix _toc.prog,$(gen-example-names))
-example-toc-plain  = $(addsuffix _toc.plain,$(gen-example-names))
-example-toc-intro  = $(addsuffix _toc.intro,$(gen-example-names))
-example-toc-results= $(addsuffix _toc.results,$(gen-example-names))
-example-toc        = $(addsuffix _toc.combined,$(gen-example-names))
+example-toc-prog   := $(addsuffix _toc.prog,$(gen-example-names))
+example-toc-plain  := $(addsuffix _toc.plain,$(gen-example-names))
+example-toc-intro  := $(addsuffix _toc.intro,$(gen-example-names))
+example-toc-results:= $(addsuffix _toc.results,$(gen-example-names))
+example-toc        := $(addsuffix _toc.combined,$(gen-example-names))
 
 # same for intermediate files for doxygen output
-example-dox-prog   = $(addsuffix _prog.dox,$(gen-example-names))
-example-dox-plain  = $(addsuffix _plain.dox,$(gen-example-names))
-example-plain      = $(addprefix plain/,$(addsuffix .cc,$(example-names)))
+example-dox-prog   := $(addsuffix _prog.dox,$(gen-example-names))
+example-dox-plain  := $(addsuffix _plain.dox,$(gen-example-names))
+example-plain      := $(addprefix plain/,$(addsuffix .cc,$(example-names)))
 
 # finally a target for combined Doxygen files
-example-doxygen     = $(addprefix doxygen/,$(addsuffix .h,$(example-names)))
+example-doxygen    := $(addprefix doxygen/,$(addsuffix .h,$(example-names)))
 
 
 # a makefile command that extracts the base name of a program

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.