Fine grained targets in Makefile

This commit is contained in:
nsubiron 2018-10-19 11:43:10 +02:00
parent 39b32d20c0
commit 4c0110c42f
2 changed files with 49 additions and 14 deletions

View File

@ -1,11 +1,9 @@
ARGS=--all
default: help
help:
@less ${CARLA_BUILD_TOOLS_FOLDER}/Linux.mk.help
launch: LibCarla
launch: LibCarla.server
@${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.sh --build --launch
launch-only:
@ -32,23 +30,52 @@ hard-clean: clean
@rm -Rf ${CARLA_BUILD_FOLDER}
@${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.sh --hard-clean
check: PythonAPI
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh $(ARGS)
check: LibCarla.server PythonAPI
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh --all $(ARGS)
benchmark: LibCarla
check.LibCarla: LibCarla.server
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh --libcarla-debug --libcarla-release $(ARGS)
check.LibCarla.debug: LibCarla.server
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh --libcarla-debug $(ARGS)
check.LibCarla.release: LibCarla.server
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh --libcarla-release $(ARGS)
check.PythonAPI: PythonAPI
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh --python-api-2 --python-api-3 $(ARGS)
check.PythonAPI.2: PythonAPI.2
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh --python-api-2 $(ARGS)
check.PythonAPI.3: PythonAPI.3
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh --python-api-3 $(ARGS)
benchmark: LibCarla.server
@${CARLA_BUILD_TOOLS_FOLDER}/Check.sh --benchmark
@cat profiler.csv
CarlaUE4Editor: LibCarla
CarlaUE4Editor: LibCarla.server
@${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.sh --build
.PHONY: PythonAPI
PythonAPI: LibCarla
PythonAPI: LibCarla.client
@${CARLA_BUILD_TOOLS_FOLDER}/BuildPythonAPI.sh --py2 --py3
PythonAPI.2: LibCarla.client
@${CARLA_BUILD_TOOLS_FOLDER}/BuildPythonAPI.sh --py2
PythonAPI.3: LibCarla.client
@${CARLA_BUILD_TOOLS_FOLDER}/BuildPythonAPI.sh --py3
.PHONY: LibCarla
LibCarla: setup
@${CARLA_BUILD_TOOLS_FOLDER}/BuildLibCarla.sh --server --client
LibCarla: LibCarla.server LibCarla.client
LibCarla.server: setup
@${CARLA_BUILD_TOOLS_FOLDER}/BuildLibCarla.sh --server
LibCarla.client: setup
@${CARLA_BUILD_TOOLS_FOLDER}/BuildLibCarla.sh --client
setup:
@${CARLA_BUILD_TOOLS_FOLDER}/Setup.sh

View File

@ -49,6 +49,14 @@ for developers:
Run unit test suites for LibCarla and PythonAPI.
check.LibCarla(.debug|.release):
Run unit test suites for LibCarla only.
check.PythonAPI(.2|.3):
Run unit test suites for PythonAPI only.
benchmark:
Run the benchmark tests for LibCarla.
@ -57,13 +65,13 @@ for developers:
Build CarlaUE4 project, but do not launch the editor.
PythonAPI:
PythonAPI(.2|.3):
Build and package the Python API module for Python 2 and 3.
Build and package the Python API module for Python 2 and/or 3.
LibCarla:
LibCarla(.server|.client):
Build the LibCarla library, both "Server" and "Client" configurations.
Build LibCarla, "Server" and/or "Client" configurations.
setup: