From 4fc51d338287b74b28026c5c7e7a9ec01a245ac9 Mon Sep 17 00:00:00 2001 From: nosamad Date: Sun, 3 Mar 2019 14:15:26 +0100 Subject: [PATCH] fixes docker output directory --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bdde077..c27b56b 100644 --- a/Makefile +++ b/Makefile @@ -89,8 +89,8 @@ $(OUT)/docker/%: $(PROJECT_ROOT)/docker/%.dockerfile $(PROJECT_RESOURCES) | $(OU $(OUT)/%/CMakeCache.txt: $(PROJECT_ROOT)/CMakeLists.txt $(OUT)/docker/% | $(OUT_DIRS) $(SILENT)$(DOCKER) run $(DOCKER_RUNFLAGS) \ --volume '$(realpath $(PROJECT_ROOT)):/tmp' \ - --volume '$(realpath $(dir $@)):/tmp/out' \ - --workdir /tmp/out \ + --volume '$(realpath $(dir $@)):/tmp/$(notdir $(OUT))' \ + --workdir '/tmp/$(notdir $(OUT))' \ $*:$(VERSION) \ cmake -GNinja $(CMAKEFLAGS) .. && touch $@ @@ -102,8 +102,8 @@ check-%: compile-%; compile-%: $(OUT)/%/CMakeCache.txt $(SILENT)$(DOCKER) run $(DOCKER_RUNFLAGS) \ --volume '$(realpath $(PROJECT_ROOT)):/tmp' \ - --volume '$(realpath $(dir $^)):/tmp/out' \ - --workdir /tmp/out \ + --volume '$(realpath $(dir $<)):/tmp/$(notdir $(OUT))' \ + --workdir '/tmp/$(notdir $(OUT))' \ $*:$(VERSION) \ ninja -j$(NPROC) $(GLOAS)