From 2f3fe166fe4a68a29c46d0703d9fde4d11a839df Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sat, 17 Feb 2024 13:50:32 +0200 Subject: [PATCH] automatic download of data files --- .gitignore | 2 ++ Makefile | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 22d3be1..9bfe508 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ misc/ textures/ *.sit score.txt +*.zip +saf_bench diff --git a/Makefile b/Makefile index 4b469d6..55011a8 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,24 @@ obj = saf_bench.o j35_draken.o tu_95.o bmp_alpha.o runway.o skybox1.o \ skybox2.o ground2.o digits.o menus.o bin = saf_bench +data_url = http://mutantstargoat.com/~nuclear/saf_bench_data.zip CXX = g++ CXXFLAGS = -O3 -ffast-math LDFLAGS = -lGL -lGLU -lglut +.PHONY: all +all: $(bin) textures/draken/j35_draken.bmp + $(bin): $(obj) $(CXX) -o $@ $(obj) $(LDFLAGS) +textures/draken/j35_draken.bmp: saf_bench_data.zip + +saf_bench_data.zip: + wget $(data_url) || curl -o $@ $(data_url) + unzip -o $@ + .PHONY: clean clean: rm -f $(obj) $(bin) -- 1.7.10.4