Makefile 806 B

123456789101112131415161718192021222324252627282930
  1. all: build
  2. build: stage0.stamp stage1.stamp stage2.stamp # stage3.stamp
  3. debug: stage2.stamp
  4. docker container prune -f
  5. mkdir -p framebuf
  6. docker run -it --mount type=bind,source=$(abspath framebuf),target=/framebuf xilinx:intalled
  7. stage0.stamp:
  8. mkdir -p stage0/jessie_chroot
  9. cd stage0; sudo /usr/sbin/debootstrap --foreign jessie jessie_chroot
  10. sudo tar -C stage0/jessie_chroot -c . | docker import - xilinx:debootstrap
  11. sudo rm -rf stage0/jessie_chroot
  12. touch $@
  13. stage1.stamp: stage0.stamp stage1/Dockerfile
  14. cd stage1; docker build -t xilinx:loaded .
  15. touch $@
  16. stage2.stamp: stage1.stamp stage2/Dockerfile
  17. cd stage2; docker build -t xilinx:installed .
  18. touch $@
  19. stage3.stamp: stage2.stamp stage3/Dockerfile
  20. cd stage3; docker build -t cryptech-alpha-builder .
  21. touch $@
  22. clean:
  23. rm -f *.stamp