[] 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 <s.bogatyrev@yadro.com>
This commit is contained in:
Stanislav Bogatyrev 2023-04-21 11:42:42 +03:00
parent 7f404de0af
commit a022bf2e40

View file

@ -21,16 +21,16 @@ $(DIRS):
@echo "⇒ Ensure dir: $@" @echo "⇒ Ensure dir: $@"
@mkdir -p $@ @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 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 wget -c https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat -O in/countries.dat
in/continents.geojson: $(DIRS) in/continents.geojson: $(DIRS)
zcat continents.geojson.gz > in/continents.geojson zcat continents.geojson.gz > in/continents.geojson
unlocode: unlocode :$(DIRS)
wget -c https://service.unece.org/trade/locode/loc222csv.zip -O tmp/loc222csv.zip wget -c https://service.unece.org/trade/locode/loc222csv.zip -O tmp/loc222csv.zip
unzip -u tmp/loc222csv.zip -d in/ unzip -u tmp/loc222csv.zip -d in/