Adding target compile in Makefile that just compiles without updating submodules
This commit is contained in:
parent
3ccd6b80dd
commit
2b6dbb7cd6
20
Makefile
20
Makefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue