diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-08-12 15:05:34 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-08-12 15:05:34 +0200 |
commit | 703fdbebc53352036bfa9e9a13599421e38d949e (patch) | |
tree | a72cd9ae022a70636d3cd4701cf431c801d6e124 /Makefile | |
parent | cf9e283239794247a849b1ad788fa49e664db96e (diff) | |
download | fuzzycat-703fdbebc53352036bfa9e9a13599421e38d949e.tar.gz fuzzycat-703fdbebc53352036bfa9e9a13599421e38d949e.zip |
update Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -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 $^ > $@ |