Makefile 369 B

123456789101112131415
  1. all: download
  2. .PHONY: download
  3. download:
  4. if ! md5sum -c md5sums; then \
  5. awk '{print $$2}' md5sums | wget -c -i - \
  6. -B "https://bf.mengyan1223.wang/lfs/fonts/"; \
  7. if ! md5sum -c md5sums; then \
  8. rm $$(awk '{print $$2}') -f; \
  9. awk '{print $$2}' md5sums | wget -c -i - \
  10. -B "https://bf.mengyan1223.wang/lfs/fonts/"; \
  11. fi; \
  12. md5sum -c md5sums; \
  13. fi