Skip to content

Commit 53fe098

Browse files
mitya57ojwb
authored andcommitted
python: Specify correct dependencies for $(python_output_dir)/__init__.py
When `python/create_init.py` is called, the `*_stemmer.py` should already exist, because this script builds a list of languages based on those files. This fixes broken Python source distribution being produced by `make -j2 dist_libstemmer_python`. Fixes #229.
1 parent 00a22de commit 53fe098

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

GNUmakefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@ $(python_output_dir)/%_stemmer.py: algorithms/%.sbl snowball$(EXEEXT)
313313
@mkdir -p $(python_output_dir)
314314
./snowball $< -py -o "$(python_output_dir)/$*_stemmer"
315315

316-
$(python_output_dir)/__init__.py: libstemmer/modules.txt
317-
@mkdir -p $(python_output_dir)
316+
$(python_output_dir)/__init__.py: $(libstemmer_algorithms:%=$(python_output_dir)/%_stemmer.py)
318317
$(python) python/create_init.py $(python_output_dir)
319318

320319
$(rust_src_dir)/%_stemmer.rs: algorithms/%.sbl snowball$(EXEEXT)

0 commit comments

Comments
 (0)