Skip to content
Permalink
Browse files

Add phony targets and docker_debug dependency

  • Loading branch information
filip-stenstrom committed Nov 15, 2019
1 parent 5f17975 commit 20c0291d258c1761267c6fdd10a312bca86fed25
Showing with 5 additions and 1 deletion.
  1. +2 −0 Makefile
  2. +3 −1 build/docker/Makefile
@@ -4,6 +4,8 @@

include $(CONFIG_FILE)

.PHONY: install test documentation generate clean

install: generate
cd $(BUILD_DIR) && \
cmake --build . --config MinSizeRel --target '$@'
@@ -9,6 +9,8 @@ include $(CONFIG_FILE)
#
# NOTE: Working directory when calling this file must be project root.

.PHONY: docker_image install test documentation docker_run_debug

docker_image:
docker build -f build/docker/Dockerfile_base -t $(DOCKER_IMAGE_BASE) .
docker build -f build/docker/Dockerfile_fmil -t $(DOCKER_IMAGE_FMIL) --no-cache . # --no-cache ensures that we get the latest FMIL files
@@ -20,7 +22,7 @@ install test documentation: docker_image
//bin/bash -c "build/docker/build.sh \
$@ $(BUILD_DIR) $(INSTALL_DIR) $(ARTIFACT_DIR) $(CONFIG)"

docker_run_debug:
docker_run_debug: docker_image
winpty docker run -it \
-v "/$(shell pwd):/$(ARTIFACT_DIR)" \
$(DOCKER_IMAGE_FMIL)

0 comments on commit 20c0291

Please sign in to comment.
You can’t perform that action at this time.