Makefile 601 B

123456789101112131415161718192021222324252627282930313233
  1. PY=python3
  2. define HEADER
  3. /**
  4. * This file is autogenerated, do not edit.
  5. * Run `make` from the scripts directory to produce splash.h
  6. *
  7. * Splashes will be stored in PROGMEM (flash).
  8. * If SSD1306_NO_SPLASH is defined, the splashes are omitted.
  9. */
  10. #ifndef SSD1306_NO_SPLASH
  11. /* clang-format off */
  12. endef
  13. define FOOTER
  14. /* clang-format on */
  15. #endif
  16. endef
  17. export HEADER
  18. export FOOTER
  19. splash.h: make_splash.py splash1.png splash2.png
  20. echo "$$HEADER" > $@
  21. ${PY} make_splash.py splash1.png splash1 >>$@
  22. ${PY} make_splash.py splash2.png splash2 >>$@
  23. echo "$$FOOTER" >> $@
  24. clean:
  25. rm -f splash.h