Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tom.hughes@palm.com>2010-11-23 09:15:04 +0300
committerTom Hughes <tom.hughes@palm.com>2010-11-24 08:33:19 +0300
commita530c23d96db854127afd0d92086dda2024248f0 (patch)
tree929739336efc2f235c9f4257110125a56e3a4b55 /Makefile.cmake
parentb57c1f51b9447b79d222f0c98b550eb6ed3f80ec (diff)
cmake: Add wrapper Makefile and README.
Diffstat (limited to 'Makefile.cmake')
-rw-r--r--Makefile.cmake30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile.cmake b/Makefile.cmake
new file mode 100644
index 00000000000..686877c607c
--- /dev/null
+++ b/Makefile.cmake
@@ -0,0 +1,30 @@
+BUILD?=build
+VERBOSE?=0
+PARALLEL_JOBS?=1
+CMAKE?=cmake
+
+all: doc package
+
+$(BUILD)/Makefile:
+ mkdir $(BUILD) || exit 0
+ cd $(BUILD) && $(CMAKE) -DCMAKE_VERBOSE_MAKEFILE=$(VERBOSE) ..
+
+build: $(BUILD)/Makefile
+ cd $(BUILD) && make -j $(PARALLEL_JOBS)
+
+install: build
+ cd $(BUILD) && sudo make install
+
+clean:
+ rm -rf $(BUILD)
+
+doc: $(BUILD)/Makefile
+ cd $(BUILD) && make doc
+
+package: $(BUILD)/Makefile
+ cd $(BUILD) && make package
+
+test: $(BUILD)/Makefile
+ cd $(BUILD) && make test
+
+.PHONY: build install clean doc package test