From 99afc8cf55062428605e4d790fa74fc98612a907 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 17 Feb 2019 21:49:56 +0000 Subject: Lame attempt to act like "make" even with docker images. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2ecae75..4a88c52 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,12 @@ endif all: ifeq (,$(shell docker image ls -q ${BASE_IMAGE})) -docker container rm -f ${BOOT_CONTAINER} - -docker image rm -f ${BOOT_IMAGE} +ifeq (,$(shell docker image ls -q ${BOOT_IMAGE})) rm -rf fs mkdir fs sudo /usr/sbin/deboot --foreign jessie fs sudo tar -C fs -c . | docker import - ${BOOT_IMAGE} +endif sudo rm -rf fs mkdir fs tar -C fs -xf ${XILINX_TARBALL} @@ -41,4 +42,8 @@ clean: git clean -dfx -e ${XILINX_TARBALL} -e ${XILINX_LICENSE} -docker container rm -f ${BOOT_CONTAINER} -.PHONY: all clean +sandblast: clean + -docker image rm -f ${BOOT_IMAGE} + -docker image rm -f ${BASE_IMAGE} + +.PHONY: all clean sandblast -- cgit v1.2.3