]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a "cmake" target to the GNUmakefile to provide an easy way to bootstrap cmake...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Feb 2013 14:40:26 +0000 (14:40 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Feb 2013 14:40:26 +0000 (14:40 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28646 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/GNUmakefile
deal.II/bundled/cmake/Makefile [new file with mode: 0644]

index 104f94bbfec90fb02927edeba91eabd7b1b7ed40..dda411bbbf6e3b7ef805665c7bb67bfe4147d745 100644 (file)
@@ -21,5 +21,19 @@ indent:
          astyle --options=contrib/utilities/astyle.rc $$f ;\
        done
 
-.PHONY: indent
+cmake:
+       @cd bundled/cmake && make
+       @echo
+       @echo =======================================================
+       @echo
+       @echo "CMake successfully bootstrapped in bundled/cmake"
+       @echo
+       @echo "Please add"
+       @echo "    export PATH=\"$(PWD)/bundled/cmake/bin:\$$PATH\""
+       @echo "to your ~/.bashrc file (or similar)."
+       @echo
+       @echo =======================================================
+       @echo
+
+.PHONY: indent cmake
 
diff --git a/deal.II/bundled/cmake/Makefile b/deal.II/bundled/cmake/Makefile
new file mode 100644 (file)
index 0000000..de8608f
--- /dev/null
@@ -0,0 +1,16 @@
+NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
+ifeq ($(NPROCS), )
+  NPROCS:=1
+endif
+
+bin/cmake:
+       wget -c "http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz"
+       tar -xf cmake-2.8.8.tar.gz
+       cd cmake-2.8.8 && ./configure --parallel=$(NPROCS) --prefix="$(PWD)"
+       cd cmake-2.8.8 && make -j $(NPROCS) install
+
+.PHONY: clean
+clean:
+       rm -rf bin cmake-2.8.8 cmake-2.8.8.tar.gz doc man share
+
+all: bin/cmake

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.