Makefile - download jokes only once

This commit is contained in:
Dejvino 2023-04-22 21:00:50 +02:00
parent 3cc530864b
commit e9d28497b7

View File

@ -5,10 +5,10 @@ DST_IMAGES := $(sort $(addprefix build/,$(addsuffix .bmp,$(notdir $(basename $(S
all: clean build all: clean build
download: jokes.json download: build/jokes.json
jokes.json: build-dir build/jokes.json: build-dir
curl -o build/jokes.json https://github.com/wiz64/superfun/raw/main/database/ichd/jokes-file.json [ -e build/jokes.json ] || curl -o build/jokes.json https://github.com/wiz64/superfun/raw/main/database/ichd/jokes-file.json
build: build-dir images download build: build-dir images download