aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-08-12 15:05:34 +0200
committerMartin Czygan <martin.czygan@gmail.com>2020-08-12 15:05:34 +0200
commit703fdbebc53352036bfa9e9a13599421e38d949e (patch)
treea72cd9ae022a70636d3cd4701cf431c801d6e124
parentcf9e283239794247a849b1ad788fa49e664db96e (diff)
downloadfuzzycat-703fdbebc53352036bfa9e9a13599421e38d949e.tar.gz
fuzzycat-703fdbebc53352036bfa9e9a13599421e38d949e.zip
update Makefile
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index ccd238b..f498609 100644
--- a/Makefile
+++ b/Makefile
@@ -14,14 +14,6 @@ deps: ## Install dependencies from setup.py into pipenv
# version, https://github.com/microsoft/vscode-python/issues/5171
pipenv install --pre '-e .[dev]'
-data/release_export_expanded.json.gz: ## Download release export
- mkdir -p data
- wget -c https://archive.org/download/$(FATCAT_BULK_EXPORT_ITEM)/release_export_expanded.json.gz -O $@
-
-data/container_export.json.gz: ## Download container export
- mkdir -p data
- wget -c https://archive.org/download/$(FATCAT_BULK_EXPORT_ITEM)/container_export.json.gz -O $@
-
.PHONY: style
style: ## Apply import sorting and black source formatting on all files
isort --atomic .
@@ -58,3 +50,15 @@ upload: dist
# For automatic package deployments, also see: .gitlab-ci.yml.
twine upload $(TWINE_OPTS) dist/*
+# ==== data related targets
+
+data/release_export_expanded.json.gz: ## Download release export
+ mkdir -p data
+ wget -c https://archive.org/download/$(FATCAT_BULK_EXPORT_ITEM)/release_export_expanded.json.gz -O $@
+
+data/container_export.json.gz: ## Download container export
+ mkdir -p data
+ wget -c https://archive.org/download/$(FATCAT_BULK_EXPORT_ITEM)/container_export.json.gz -O $@
+
+data/name_to_issn.json: data/issn.ndj ## Create a name to ISSN mapping (needs an ISSN JSON dump)
+ fuzzycat-issn --make-mapping $^ > $@