[Build] Added MAKE_FLAGS variable to Makefile

+ Mainly too provide -j parallel execution option
This commit is contained in:
Ganesh Gore 2020-12-16 10:15:11 -07:00
parent b5d3aa22c9
commit c5e9da985a
1 changed files with 4 additions and 3 deletions

View File

@ -5,20 +5,21 @@ CMAKE_COMMAND := cmake
else
CMAKE_COMMAND := ${CMAKE_COMMAND}
endif
MAKE_FLAGS :=
.PHONY: all checkout compile
all: checkout
mkdir -p build && cd build && $(CMAKE_COMMAND) ${CMAKE_FLAGS} ..
cd build && $(MAKE)
cd build && $(MAKE) ${MAKE_FLAGS}
checkout:
checkout:
git submodule init
git submodule update --init --recursive
compile:
mkdir -p build && cd build && $(CMAKE_COMMAND) ${CMAKE_FLAGS} ..
cd build && $(MAKE)
cd build && $(MAKE) ${MAKE_FLAGS}
clean:
rm -rf build