2010-11-23 07:15:04 +01:00
|
|
|
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
|
|
|
|
|
2010-11-23 19:27:03 +01:00
|
|
|
cdash: $(BUILD)/Makefile
|
|
|
|
cd $(BUILD) && make Experimental
|
|
|
|
|
2010-11-24 07:34:50 +01:00
|
|
|
cdash-cov: $(BUILD)/Makefile
|
|
|
|
cd $(BUILD) && $(CMAKE) -DUSE_GCOV=True .. && make Experimental
|
|
|
|
|
2010-11-24 08:25:41 +01:00
|
|
|
cdash-mem: $(BUILD)/Makefile
|
|
|
|
cd $(BUILD) && make NightlyMemoryCheck
|
|
|
|
|
|
|
|
.PHONY: build install clean doc package test cdash cdash-cov cdash-mem
|