all: stage0.stamp stage1.stamp stage2.stamp stage3.stamp stage0.stamp: mkdir -p fs/cryptech-builder sudo /usr/sbin/debootstrap --foreign jessie fs sudo tar -C fs -xf Xilinx_ISE_DS_Lin_14.7_1015_1.tar sudo tar -C fs -c . | docker import - cryptech-builder:stage0 sudo rm -rf fs touch $@ stage1.stamp: stage0.stamp Builder Ratinox docker run -it --name cryptech-builder-stage1 \ --mount type=bind,source=$(abspath .),target=/cryptech-builder \ cryptech-builder:stage0 \ /cryptech-builder/Builder docker export cryptech-builder-stage1 | \ xz -v >cryptech-builder-stage1.xz docker container rm cryptech-builder-stage1 touch $@ stage2.stamp: stage1.stamp docker rmi cryptech-builder:stage0 docker import cryptech-builder-stage1.xz cryptech-builder:stage2 # rm cryptech-builder-stage1.xz touch $@ stage3.stamp: stage2.stamp Dockerfile docker build -t cryptech-builder . touch $@ clean: rm -f *.stamp Xvfb_screen* cryptech-builder-stage1.xz