pico-epaper/Makefile

27 lines
553 B
Makefile
Raw Permalink Normal View History

2023-04-22 18:58:50 +00:00
.DEFAULT_GOAL := build
2023-04-22 17:14:21 +00:00
2023-04-22 18:58:50 +00:00
SRC_IMAGES := $(wildcard gallery/*.jpg)
DST_IMAGES := $(sort $(addprefix build/,$(addsuffix .bmp,$(notdir $(basename $(SRC_IMAGES))))))
all: clean build
2023-04-22 17:14:21 +00:00
2023-04-22 19:00:50 +00:00
download: build/jokes.json
2023-04-22 17:14:21 +00:00
2023-04-22 19:00:50 +00:00
build/jokes.json: build-dir
[ -e build/jokes.json ] || curl -o build/jokes.json https://github.com/wiz64/superfun/raw/main/database/ichd/jokes-file.json
2023-04-22 18:58:50 +00:00
build: build-dir images download
build-dir:
mkdir -p build
images: $(DST_IMAGES)
$(DST_IMAGES): build/%.bmp: gallery/%.jpg
./convert_image.sh $< $@
.PHONY: clean
clean:
rm -rf build/
2023-04-22 17:14:21 +00:00