aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2019-02-17 21:49:56 +0000
committerRob Austein <sra@hactrn.net>2019-02-17 21:49:56 +0000
commit99afc8cf55062428605e4d790fa74fc98612a907 (patch)
treee1939e1a820c888cf12d6c675075a5ec3abc9e93
parentd83e17dcd6bfb332eb0dd36b83148753de71c045 (diff)
Lame attempt to act like "make" even with docker images.
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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