From 2b6dbb7cd6a0ee535eb5745767888eaf88732625 Mon Sep 17 00:00:00 2001 From: Lalit Sharma Date: Mon, 14 Dec 2020 09:25:50 -0800 Subject: [PATCH] Adding target compile in Makefile that just compiles without updating submodules --- Makefile | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 1f266bd5b..d8b91a791 100644 --- a/Makefile +++ b/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