Makefile: fix target locode-download #1056

Merged
fyrchik merged 1 commit from elebedeva/frostfs-node:fix/locode-download into master 2024-03-28 19:57:46 +00:00
Showing only changes of commit 8690db697c - Show all commits

View file

@ -265,8 +265,9 @@ debclean:
# Download locode database # Download locode database
locode-download: locode-download:
@wget -q -O ./.cache/locode_db.gz 'https://git.frostfs.info/TrueCloudLab/frostfs-locode-db/releases/download/${LOCODE_DB_VERSION}/locode_db.gz' mkdir -p $(TMP_DIR)

mkdir has -p option which serves this purpose (ignore EEXIST), among others.
Also, while we are here: it seems that .cache is actually $(TMP_DIR) -- can we use it (see other targets, should be similar to this one).

`mkdir` has `-p` option which serves this purpose (ignore EEXIST), among others. Also, while we are here: it seems that `.cache` is actually `$(TMP_DIR)` -- can we use it (see other targets, should be similar to this one).

Replaced condition with mkdir -p and .cache with $(TMP_DIR).

Should I replace .cache with $(TMP_DIR) in other targets as well?

Replaced condition with ```mkdir -p``` and ```.cache``` with ```$(TMP_DIR)```. Should I replace ```.cache``` with ```$(TMP_DIR)``` in other targets as well?
gzip -dfk ./.cache/locode_db.gz @wget -q -O ./$(TMP_DIR)/locode_db.gz 'https://git.frostfs.info/TrueCloudLab/frostfs-locode-db/releases/download/${LOCODE_DB_VERSION}/locode_db.gz'
gzip -dfk ./$(TMP_DIR)/locode_db.gz
# Start dev environment # Start dev environment
env-up: all env-up: all