palm-client: only start Docker when sources changed
make install hung for minutes when Docker Desktop's amd64 emulation stopped starting containers, although the .prc was already built. Without a local toolchain, build/visormesh.prc now depends on the sources, resources and .def, so an up-to-date install goes straight to pilot-xfer.
This commit is contained in:
1 parent
9d868898ac
commit
ac40815b4f
1 file changed
+9
-1
@@ -27,7 +27,15 @@ DOCKER_RUN = docker run --rm --platform linux/amd64 -v "$(CURDIR)":/src -w /sr
|
||||
|
||||
ifeq ($(shell command -v $(CC) 2>/dev/null),)
|
||||
|
||||
all test: image
|
||||
# Only start Docker when something changed: the .prc depends on the sources,
|
||||
# so an install of an up-to-date build doesn't need the toolchain at all.
|
||||
all: build/$(APP).prc
|
||||
|
||||
build/$(APP).prc: $(SRCS) src/*.h src/ui/*.h resources/$(APP).rcp resources/smallfont.nfnt $(APP).def
|
||||
$(MAKE) image
|
||||
$(DOCKER_RUN) make all
|
||||
|
||||
test: image
|
||||
$(DOCKER_RUN) make $@
|
||||
|
||||
image:
|
||||
|
||||
Reference in new issue
Block a user