Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Makefile for dependencies and deployment.
  2. # Copyright 2015 Ralph Giles. GPLv3.
  3. SRCS := index.html glyph.js glyph.css \
  4. Akkadian.ttf NotoSansCuneiform-Regular.ttf \
  5. CNAME
  6. all: $(SRCS)
  7. # CNAME file for setting deployment domain.
  8. # Edit this locally to override.
  9. CNAME:
  10. echo akkad.surge.sh > $@
  11. deploy: $(SRCS)
  12. -rm -rf _deploy
  13. mkdir _deploy
  14. cp $^ _deploy/
  15. surge _deploy/
  16. Akkadian.ttf: Akkadian.zip
  17. @SHA2=$$(shasum -a 256 $< | cut -f 1 -d ' '); \
  18. if test "$${SHA2}" != $(Akkadian_zip_SHA2); then \
  19. echo "Checksum mismatch for $<!"; exit 1; fi
  20. unzip $< $@
  21. # bump the date so we don't run this rule every time.
  22. touch $@
  23. Akkadian_zip_SHA2 := a3ad5b8aa93ac10d2b57b0ac4655f26ce1e7b070a1dd61d9093bd11dac0ab1ba
  24. Akkadian.zip:
  25. curl -sO http://users.teilar.gr/~g1951d/Akkadian.zip
  26. NotoSansCuneiform-Regular.ttf: NotoSansCuneiform-unhinted.zip
  27. unzip $< $@
  28. # bump the date so we don't run this rule every time.
  29. touch $@
  30. NotoSansCuneiform_zip_SHA2 := 6eb7b77387c298c8cff328d0d0084d35e5e264352a382e7b3aefb7061beedec0
  31. NotoSansCuneiform-unhinted.zip:
  32. curl -sO https://noto-website.storage.googleapis.com/pkgs/NotoSansCuneiform-unhinted.zip
  33. @SHA2=$$(shasum -a 256 $@ | cut -f 1 -d ' '); \
  34. if test $${SHA2} != $(NotoSansCuneiform_zip_SHA2); then \
  35. echo "Checksum mismatch for $@!"; exit 1; fi