mirror of
https://github.com/corda/corda.git
synced 2024-12-30 17:57:02 +00:00
20 lines
259 B
Makefile
20 lines
259 B
Makefile
|
MODE ?= Debug # or Release
|
||
|
|
||
|
.PHONY: all clean
|
||
|
|
||
|
all: build/Makefile
|
||
|
$(MAKE) -C $(<D) help
|
||
|
exit 1
|
||
|
|
||
|
build:
|
||
|
mkdir -p build
|
||
|
|
||
|
build/Makefile: | build
|
||
|
cd build/ && cmake -DCMAKE_BUILD_TYPE=$(MODE) ..
|
||
|
|
||
|
%: build/Makefile
|
||
|
$(MAKE) -C $(<D) $@
|
||
|
|
||
|
clean:
|
||
|
rm -rf build
|