diff options
author | Tom Hughes <tom.hughes@palm.com> | 2010-11-23 09:15:04 +0300 |
---|---|---|
committer | Tom Hughes <tom.hughes@palm.com> | 2010-11-24 08:33:19 +0300 |
commit | a530c23d96db854127afd0d92086dda2024248f0 (patch) | |
tree | 929739336efc2f235c9f4257110125a56e3a4b55 /Makefile.cmake | |
parent | b57c1f51b9447b79d222f0c98b550eb6ed3f80ec (diff) |
cmake: Add wrapper Makefile and README.
Diffstat (limited to 'Makefile.cmake')
-rw-r--r-- | Makefile.cmake | 30 |
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 |