]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
A GNUmakefile for the examples
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Feb 2013 16:21:01 +0000 (16:21 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Feb 2013 16:21:01 +0000 (16:21 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28580 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/GNUmakefile [new file with mode: 0644]

diff --git a/deal.II/examples/GNUmakefile b/deal.II/examples/GNUmakefile
new file mode 100644 (file)
index 0000000..8cd36aa
--- /dev/null
@@ -0,0 +1,23 @@
+#
+# GNUmakefile has priority over Makefile for GNU Make.
+# So if a Makefile was generated by CMake due to an in-source configure
+# chain-load it:
+#
+ifneq ($(wildcard Makefile),)
+  include Makefile
+else
+  default:
+endif
+
+steps:= $(wildcard step-*)
+
+configure_examples:
+       @echo "============ Configure all examples"
+       @for f in  $(steps);\
+       do\
+         cd $$f ;\
+         cmake .;\
+       done
+
+.PHONY: configure_examples
+

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.