Makefile 963 B

1234567891011121314151617181920212223242526272829303132
  1. all: stage0.stamp stage1.stamp stage2.stamp stage3.stamp
  2. stage0.stamp:
  3. mkdir -p fs/cryptech-builder
  4. sudo /usr/sbin/debootstrap --foreign jessie fs
  5. sudo tar -C fs -xf Xilinx_ISE_DS_Lin_14.7_1015_1.tar
  6. sudo tar -C fs -c . | docker import - cryptech-builder:stage0
  7. sudo rm -rf fs
  8. touch $@
  9. stage1.stamp: stage0.stamp Builder Ratinox
  10. docker run -it --name cryptech-builder-stage1 \
  11. --mount type=bind,source=$(abspath .),target=/cryptech-builder \
  12. cryptech-builder:stage0 \
  13. /cryptech-builder/Builder
  14. docker export cryptech-builder-stage1 | \
  15. xz -v >cryptech-builder-stage1.xz
  16. docker container rm cryptech-builder-stage1
  17. touch $@
  18. stage2.stamp: stage1.stamp
  19. docker rmi cryptech-builder:stage0
  20. docker import cryptech-builder-stage1.xz cryptech-builder:stage2
  21. # rm cryptech-builder-stage1.xz
  22. touch $@
  23. stage3.stamp: stage2.stamp Dockerfile
  24. docker build -t cryptech-builder .
  25. touch $@
  26. clean:
  27. rm -f *.stamp Xvfb_screen* cryptech-builder-stage1.xz