snowballstem / snowball

Snowball compiler and stemming algorithms
https://snowballstem.org/
BSD 3-Clause "New" or "Revised" License
757 stars 173 forks source link

No rule to make target 'check_python_arabic' #196

Closed amaccis closed 6 months ago

amaccis commented 6 months ago

When I exec "make check_python" I get

make[1]: *** No rule to make target 'check_python_arabic'. Stop.

but as far as I got the makefile seems to have the rule

check_python: python
    $(MAKE) $(libstemmer_algorithms:%=check_python_%)

check_python_%: $(STEMMING_DATA_ABS)/%

so clearly I'm doing something stupid. Any hint?

amaccis commented 6 months ago

I was right and indeed it was something stupid.

STEMMING_DATA ?= ../snowball-data
STEMMING_DATA_ABS := $(abspath $(STEMMING_DATA))

the path of STEMMING_DATA was not the correct one. I'm closing the issue.

ojwb commented 6 months ago

I think we could (and should) do better here - the current error message doesn't give any useful clue as to the actual problem, and we don't clearly document the expectation that snowball-data is checked out in a sibling directory (it's sort of alluded to in CONTRIBUTING.rst but that seems to be all). This doesn't seem like stupidity on your part.

ojwb commented 6 months ago

You now get:

$ make -s check_python
/home/olly/git/snowball-data/arabic: Test data not found
Checkout the snowball-data repo as "/home/olly/git/snowball-data"
make[1]: *** [GNUmakefile:233: /home/olly/git/snowball-data/arabic] Error 1
make: *** [GNUmakefile:735: check_python] Error 2