From a022bf2e40ac95d98b294e617dc043d25601ed94 Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Fri, 21 Apr 2023 11:42:42 +0300 Subject: [PATCH] [#4] Fix broken build with parallel make Adding $(DIRS) dependency to fix parallel make build. Without this dependency targets downloading external databases may fail if output directory was not created yet. Signed-off-by: Stanislav Bogatyrev --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7c38b34..236a9ee 100644 --- a/Makefile +++ b/Makefile @@ -21,16 +21,16 @@ $(DIRS): @echo "⇒ Ensure dir: $@" @mkdir -p $@ -in/airports.dat: +in/airports.dat: $(DIRS) wget -c https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat -O in/airports.dat -in/countries.dat: +in/countries.dat: $(DIRS) wget -c https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat -O in/countries.dat in/continents.geojson: $(DIRS) zcat continents.geojson.gz > in/continents.geojson -unlocode: +unlocode :$(DIRS) wget -c https://service.unece.org/trade/locode/loc222csv.zip -O tmp/loc222csv.zip unzip -u tmp/loc222csv.zip -d in/