ePaper display driven by a Raspberry Pi Pico
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
553 B

  1. .DEFAULT_GOAL := build
  2. SRC_IMAGES := $(wildcard gallery/*.jpg)
  3. DST_IMAGES := $(sort $(addprefix build/,$(addsuffix .bmp,$(notdir $(basename $(SRC_IMAGES))))))
  4. all: clean build
  5. download: build/jokes.json
  6. build/jokes.json: build-dir
  7. [ -e build/jokes.json ] || curl -o build/jokes.json https://github.com/wiz64/superfun/raw/main/database/ichd/jokes-file.json
  8. build: build-dir images download
  9. build-dir:
  10. mkdir -p build
  11. images: $(DST_IMAGES)
  12. $(DST_IMAGES): build/%.bmp: gallery/%.jpg
  13. ./convert_image.sh $< $@
  14. .PHONY: clean
  15. clean:
  16. rm -rf build/