From 19e3dd4c603ee3b5a1c9ce78c219b14430674f9c Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Thu, 1 Dec 2016 15:23:03 +0000 Subject: [PATCH] Makefile cleanup for binfmt Remove duplication and simplify. Signed-off-by: Justin Cormack --- alpine/containers/binfmt/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/alpine/containers/binfmt/Makefile b/alpine/containers/binfmt/Makefile index 86195ab7a..c43b8eb83 100644 --- a/alpine/containers/binfmt/Makefile +++ b/alpine/containers/binfmt/Makefile @@ -6,11 +6,9 @@ default: rootfs $(QEMU_BINARIES): docker run --rm --net=none $(QEMU_IMAGE) tar cf - -C /usr/bin $@ | tar xf - -DEPS=Dockerfile main.go 00_moby.conf $(QEMU_BINARIES) - -rootfs: $(DEPS) $(QEMU_BINARIES) +rootfs: Dockerfile main.go 00_moby.conf $(QEMU_BINARIES) mkdir -p $@ - BUILD=$$( tar cf - $(DEPS) | docker build -q - ) && \ + BUILD=$$( tar cf - $^ | docker build -q - ) && \ [ -n "$$BUILD" ] && \ echo "Built $$BUILD" && \ IMAGE=$$( docker run --rm --net=none $$BUILD | docker build -q - ) && \