]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
simplify Makefile
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 4 Dec 2011 23:15:25 +0000 (23:15 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 4 Dec 2011 23:15:25 +0000 (23:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@24789 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/Makefile

index dafafcf5d6d0ca83a0b3120d71ba7dfc99c5c17f..4f77885a1d6716405886cbeea5384384300e2728 100644 (file)
@@ -24,11 +24,6 @@ all-dirs      := numerics fe dofs lac base grid hp multigrid distributed
 cc-files      := $(shell for i in $(all-dirs) ; do echo $D/source/$$i/*.cc ; done)
 h-files       := $(sort $(shell echo $D/include/deal.II/*/*.h))
 
-inst-in-files := $(shell echo */*.inst.in)
-pl-files      := $(shell echo */*.pl)
-inst-files    := $(inst-in-files:%.in=%) $(pl-files:%.pl=%.inst)
-
-
 # build unique object file names
 tmp1     := $(shell echo $(cc-files) | $(PERL) -pi -e 's,$D/source/,,g; s,/,_,g;')
 o-files  := $(addprefix $(LIBDIR)/optimized/, $(tmp1:.cc=.$(OBJEXT)) )
@@ -51,11 +46,16 @@ $(LIBDIR)/optimized/%.$(OBJEXT) :
 
 
 %.inst : %.inst.in $D/common/template-arguments
-       @echo "===================================== $(@F)"
+       @echo "======================instantiate==== $(@F)"
        @$D/common/scripts/expand_instantiations $D/common/template-arguments < $< > $@ || exit 1
 
+%.inst : %.inst.pl $D/common/dealiitemplates.pm
+       @echo "======================instantiate==== $(@F)"
+       @perl -I $D/common/ $< > $@ || exit 1
+
+#Todo: remove this target after renaming files
 %.inst : %.pl $D/common/dealiitemplates.pm
-       @echo "===================================== $(@F)"
+       @echo "======================instantiate==== $(@F)"
        @perl -I $D/common/ $< > $@ || exit 1
 
 
@@ -196,7 +196,7 @@ $(LIBDIR)/libdeal_II$(shared-lib-suffix): $(o-files) $(extra-o-files)
 # A rule to make sure the various */Makefile.dep files have the right
 # dependencies on their source files. Use the opportunity to also ensure that
 # .inst and the lapack file are built before everything else
-Makefile.dep: $(inst-files) ../include/deal.II/lac/lapack_templates.h \
+Makefile.dep: ../include/deal.II/lac/lapack_templates.h \
                $(cc-files)
        @echo "===================================== Remaking $@"
        @for i in $(all-dirs) ; do \

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.