From e9d28497b734ea092b13e95e2f32775fbd3b1155 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Sat, 22 Apr 2023 21:00:50 +0200 Subject: [PATCH] Makefile - download jokes only once --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 741b1c9..9e09d4b 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,10 @@ DST_IMAGES := $(sort $(addprefix build/,$(addsuffix .bmp,$(notdir $(basename $(S all: clean build -download: jokes.json +download: build/jokes.json -jokes.json: build-dir - curl -o build/jokes.json https://github.com/wiz64/superfun/raw/main/database/ichd/jokes-file.json +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 build: build-dir images download