Improve makefile targets
This commit is contained in:
parent
ae8cc4cae2
commit
5e8bc7c05b
10
Makefile
10
Makefile
|
@ -24,7 +24,7 @@ MKFILE_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
|
|||
|
||||
SUDO ?= sudo
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
help:
|
||||
@echo "Usage:"
|
||||
|
@ -44,7 +44,7 @@ help:
|
|||
|
||||
.PHONY: help
|
||||
|
||||
all: test samples tools
|
||||
all: samples tools ros
|
||||
|
||||
.PHONY: all
|
||||
|
||||
|
@ -78,7 +78,7 @@ submodules:
|
|||
|
||||
# init
|
||||
|
||||
init: submodules
|
||||
init:
|
||||
@$(call echo,Make $@)
|
||||
@$(SH) ./scripts/init.sh $(INIT_OPTIONS)
|
||||
|
||||
|
@ -86,7 +86,7 @@ init: submodules
|
|||
|
||||
# build
|
||||
|
||||
build: submodules
|
||||
build: init
|
||||
@$(call echo,Make $@)
|
||||
ifeq ($(HOST_OS),Win)
|
||||
@$(call cmake_build,./_build,..,-DCMAKE_INSTALL_PREFIX=$(MKFILE_DIR)/_install)
|
||||
|
@ -98,7 +98,7 @@ endif
|
|||
|
||||
# test
|
||||
|
||||
test: install
|
||||
test: submodules install
|
||||
@$(call echo,Make $@)
|
||||
@$(call echo,Make gtest,33)
|
||||
ifeq ($(HOST_OS),Win)
|
||||
|
|
Loading…
Reference in New Issue
Block a user