Adding target compile in Makefile that just compiles without updating submodules

This commit is contained in:
Lalit Sharma 2020-12-14 09:25:50 -08:00
parent 3ccd6b80dd
commit 2b6dbb7cd6
1 changed files with 12 additions and 8 deletions

View File

@ -6,21 +6,25 @@ else
CMAKE_COMMAND := ${CMAKE_COMMAND}
endif
.PHONY: all env
.PHONY: all checkout compile
all: env
all: checkout
mkdir -p build && cd build && $(CMAKE_COMMAND) ${CMAKE_FLAGS} ..
cd build && $(MAKE)
checkout:
git submodule init
git submodule update --init --recursive
compile:
mkdir -p build && cd build && $(CMAKE_COMMAND) ${CMAKE_FLAGS} ..
cd build && $(MAKE)
clean:
rm -rf build
env:
git submodule init
git submodule update --init --recursive
mkdir -p build && cd build && $(CMAKE_COMMAND) ${CMAKE_FLAGS} ..
build/Makefile:
make env
make checkout
.PHONY: Makefile