mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
527 B
31 lines
527 B
14 years ago
|
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
|