]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
merge from mainline
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Nov 2012 22:30:41 +0000 (22:30 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Nov 2012 22:30:41 +0000 (22:30 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27620 0785d39b-7218-0410-832d-ea1e28bc413d

1  2 
deal.II/Makefile
deal.II/contrib/utilities/astyle.rc

index 05ab97b004939fa745687d4ccb04a3f075da0aa6,9084d9e73994b262f03ac767c861bf43462f1db3..d5fd0b4dab1bd4e4d05bbcaaad73251a5f584cd8
@@@ -1,8 -1,178 +1,10 @@@
 -# $Id$
 -#
 -# Makefile for the whole library
 -
 -SHELL=/bin/bash
 -
 -help:
 -      @echo "========================================================================"
 -      @echo "=              Global Makefile for the deal.II libraries               ="
 -      @echo "========================================================================"
 -      @echo "=                                                                      ="
 -      @echo "= The following targets exist:                                         ="
 -      @echo "=    all        : debug and optimized libraries                        ="
 -      @echo "=    debug      : the debug version of the deal.II library             ="
 -      @echo "=    optimized  : the optimized version of the deal.II library         ="
 -      @echo "=                                                                      ="
 -      @echo "=    contrib    : additional libraries in contrib, if there are any    ="
 -      @echo "=                                                                      ="
 -      @echo "=    online-doc : generate the documentation in HTML format            ="
 -      @echo "=    TODO       : create a \"TODO\" file from the source files           ="
 -      @echo "=    TAGS       : create a TAGS file from include and source files     ="
 -      @echo "=                                                                      ="
 -      @echo "=    clean      : removes all object files in subdirs                  ="
 -      @echo "=    distclean  : removes all object files, libraries, etc in subdirs  ="
 -      @echo "========================================================================"
 -
 -config.log: configure
 -      $(error Error: configuration not up to date. Please run ./configure or ./reconfigure)
 -
 -deps: config.log
 -      @cd common/scripts && $(MAKE) $(MAKEOPTIONS)
 -      @cd source && if $(MAKE) $(MAKEOPTIONS) Makefile.dep;\
 -        then : ;\
 -        else rm Makefile.dep && $(MAKE) $(MAKEOPTIONS) Makefile.dep; fi
 -      @cd lib && $(MAKE) $(MAKEOPTIONS) external-links
 -      @if test ! -d lib/debug ; then     mkdir -p lib/debug     && echo "Created lib/debug" ;     fi
 -      @if test ! -d lib/optimized ; then mkdir -p lib/optimized && echo "Created lib/optimized" ; fi
 -
 -
 -
 -all: debug optimized
 -
 -debug: deps contrib
 -      @cd source && $(MAKE) debug
 -
 -optimized: deps contrib
 -      @cd source && $(MAKE) optimized
 -
 -contrib:
 -      @cd contrib && $(MAKE)
 -
 -online-doc doc:
 -      cd doc && $(MAKE)
 -      @echo
 -      @echo
 -      @echo =======================================================
 -      @echo "The online documentation can now be accessed through"
 -      @echo "  doc/index.html"
 -      @echo =======================================================
 -      @echo
 -      @echo
 -
 -TAGS:
 -      @cd common ; etags --language=c++ \
 -      ../include/deal.II/*/*.h ../source/*/*.cc \
 -      ../examples/*/*.cc ; \
 -      perl -pi -e 's/ \* .*//g; s&[\t]*/\*.*&&g; s&[\t]*\*/.*&&g;' TAGS
 -
 -
 -clean: clean-contrib clean-source \
 -       clean-doc clean-examples clean-lib clean-tests
 -      -rm -f TODO common/TAGS
 -
 -clean-contrib:
 -      @cd contrib && $(MAKE) clean
 -
 -clean-source:
 -      @cd source && $(MAKE) CLEAN=yes clean
 -
 -clean-doc:
 -      @cd doc && $(MAKE) CLEAN=yes clean
 -
 -clean-examples:
 -      @cd examples && $(MAKE) CLEAN=yes clean
 -
 -clean-lib:
 -      @cd lib && $(MAKE) CLEAN=yes clean
 -
 -# if that directory exists, go into 'tests' and clean up there as well
 -clean-tests:
 -      @-cd tests && $(MAKE) clean
 -
 -clean-common-scripts:
 -      @cd common/scripts && $(MAKE) clean
 -
 -distclean: clean
 -      @cd lib && $(MAKE) distclean
 -      @-cd tests && $(MAKE) distclean
 -      @-rm source/*/*.inst
 -      @$(MAKE) clean-common-scripts
 -
 -
 -
 -# #############################################################################
 -# targets for build tests. these targets are supposed to be called for regular
 -# build tests that send their results back home to our build test server. note
 -# that this target is supposed to be called right after checking out a version
 -# from our CVS server, so at this time, common/Make.global_options doesn't
 -# exist yet (and isn't included at the top of this file, due to a
 -# conditional), and we first have to set up all this stuff.
 -#
 -# the way this target works is that it first generates a bunch of lines for
 -# the output file that will ultimately be sent home. it then calls ./configure
 -# and stashes away both the output and the return value. if ./configure
 -# succeeds, we extract a little more information concluding the
 -# header. irrespective of this, we then append the output of ./configure to
 -# the log file. if the call to ./configure failed, we send the result back
 -# home and exit.
 -#
 -# if ./configure succeeded, we then go on to the build-test-do target, which
 -# actually compiles something, and when we come back from there we send the
 -# whole thing over to the server
 -build-test:
 -      echo AUTOMATED DEAL.II BUILD TEST          | tee    build-test-log
 -      -(./configure $(BUILDTESTFLAGS) 2>&1) > build-test-config
 -      echo BEGIN HEADER `date -u '+%Y-%m-%d %T'`        | tee -a build-test-log
 -      (cd common ; $(MAKE) BUILDTEST=yes -f Make.global_options print-summary) | tee -a build-test-log
 -      echo END HEADER `date -u '+%Y-%m-%d %T'`             | tee -a build-test-log
 -      echo                                  | tee -a build-test-log
 -      echo BEGIN CONFIGURE OUTPUT `date -u '+%Y-%m-%d %T'` | tee -a build-test-log
 -      cat build-test-config                 | tee -a build-test-log
 -      echo END CONFIGURE OUTPUT `date -u '+%Y-%m-%d %T'`   | tee -a build-test-log
 -      echo                                  | tee -a build-test-log
 -      -$(MAKE) BUILDTEST= build-test-do 2>&1 | tee -a build-test-log
 -
 -# target to do the actual compilation tests for an automated build test. build
 -# the library, the example programs, and the doxygen example programs. if the
 -# testsuite has been checked out, run that, too, and send the results to the
 -# testsuite server
 -build-test-do:
 -      @echo BEGIN MAKE LIB OUTPUT `date -u '+%Y-%m-%d %T'`
 -      $(MAKE) all
 -      @echo END MAKE LIB OUTPUT `date -u '+%Y-%m-%d %T'`
 -      @echo
 -      @echo BEGIN MAKE EXAMPLES OUTPUT `date -u '+%Y-%m-%d %T'`
 -      cd examples ; $(MAKE)
 -      @echo END MAKE EXAMPLES OUTPUT `date -u '+%Y-%m-%d %T'`
 -      @echo
 -      @echo BEGIN MAKE RUN EXAMPLES OUTPUT `date -u '+%Y-%m-%d %T'`
 -      cd examples/doxygen ; $(MAKE) run
 -      @echo END MAKE RUN EXAMPLES OUTPUT `date -u '+%Y-%m-%d %T'`
 -      @echo
 -      @echo BUILD TEST SUCCESSFUL `date -u '+%Y-%m-%d %T'`
 -
++default:
  style-h-files:= $(wildcard include/deal.II/*/*.h)
  style-cc-files:= $(wildcard source/*/*.cc)
- default:
+ style-examples:= $(wildcard examples/*/*.cc)
 -indent:
 -      @echo "============ Indenting all files"
 -      astyle --options=common/astyle.rc $(style-h-files) $(style-cc-files) $(style-examples)
  
 -.PHONY: indent        
 -
 -
 -.PHONY: all \
 -        online-doc doc printable-doc tex-doc contrib \
 -        clean clean-contrib clean-base clean-lac clean-dealII \
 -      clean-doc clean-examples clean-lib clean-tests clean-common-scripts \
 -      distclean \
 -      build-test build-test-do \
 -      TAGS TODO
 +indent:
 +        @echo "============ Indenting all files"
-         astyle --options=contrib/utilities/astyle.rc $(style-h-files) $(style-cc-files)
++        astyle --options=contrib/utilities/astyle.rc $(style-h-files) $(style-cc-files) $(style-examples)
 -# mark the following two as phony since they mark two actual files but
 -# we don't want to list the full dependencies here. let the sub-makefiles
 -# do that
 -.PHONY: common/scripts/make_dependencies \
 -        common/scripts/expand_instantiations
Simple merge

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.