diff --git a/apil-dumps/Makefile b/apil-dumps/Makefile index 8efd1fb..e912d2a 100644 --- a/apil-dumps/Makefile +++ b/apil-dumps/Makefile @@ -69,8 +69,8 @@ $(eval TMP3 = $(@D)/$(TMP2)) mkdir -p $(TMP3) cd $(TMP3) && cat $(TMP1) | split -l 10000 - "$(TMP2)_" - find $(TMP3) -name "$(TMP2)_*" -exec mv {} {}.jsonl \; - find $(TMP3) -name "$(TMP2)_*" -exec readlink -f {} \;|xargs wc -l > $@ + find $(TMP3) -type f -name "$(TMP2)_??" -exec mv {} {}.jsonl \; + find $(TMP3) -type f -name "$(TMP2)_??.jsonl" -exec readlink -f {} \;|xargs wc -l > $@ # To prevent deleting intermediate files (useful for local tests) # .PRECIOUS: 02-download/$(VERSION_DIR)/%.jsonl