Skip to content

Commit

Permalink
Adds Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gremid committed Mar 14, 2024
1 parent 3a29855 commit dd8154c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SHELL := /bin/bash

all: src/julesratte/wikidata/properties.json
src/julesratte/wikidata/properties.json:
docker run --rm -it maxlath/wikibase-cli props -e https://query.wikidata.org/sparql >$@

all: resources/julesratte/wikidata/lexemes.json.gz
resources/julesratte/wikidata/lexemes.json.gz:
curl -o $@ https://dumps.wikimedia.org/wikidatawiki/entities/latest-lexemes.json.gz

all: resources/julesratte/wiktionary/de.edn
resources/julesratte/wiktionary/de.edn:
mkdir -p `dirname $@`
clojure -M -m julesratte.wiktionary.de >$@
3 changes: 1 addition & 2 deletions src/julesratte/wiktionary/de.clj
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,4 @@
*print-readably* true]
(doseq [t (mapcat :types entries)] (println (pr-str t))))))
(finally
(shutdown-agents)))
)
(shutdown-agents))))

0 comments on commit dd8154c

Please sign in to comment.