Browse Source

Makefile.am: add missing 'espeak-ng' dependency

Noticed build failure on NixOS when built package with 'make -j16':

    build flags: -j16 -l16 SHELL=bash
    Makefile:2844: warning: ignoring prerequisites on suffix rule definition
    make  all-am
    make[1]: Entering directory '/build/espeak-ng'
    Makefile:2844: warning: ignoring prerequisites on suffix rule definition
    touch dictsource/az_extra
    ...
    touch dictsource/yue_extra
    cd dictsource && ESPEAK_DATA_PATH=/build/espeak-ng LD_LIBRARY_PATH=../src: ../src/espeak-ng --compile=yue && cd ..
    bash: line 1: ../src/espeak-ng: No such file or directory
    make[1]: *** [Makefile:3546: espeak-ng-data/yue_dict] Error 127
    make[1]: Leaving directory '/build/espeak-ng'
    make: *** [Makefile:831: all] Error 2

The fix is to add dependency on 'espeak-ng' similar to other rules.
master
Sergei Trofimovich 3 years ago
parent
commit
9dba972b8a
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      Makefile.am

+ 8
- 2
Makefile.am View File

# #
# The rm $@ stops espeak-ng trying to load the old dictionary when it is run # The rm $@ stops espeak-ng trying to load the old dictionary when it is run
# (at the cost of a spurious error message.) # (at the cost of a spurious error message.)
#
# NOTE: keep in sync with 'espeak-ng-data/yue_dict' more specific rule.
espeak-ng-data/%_dict: src/espeak-ng phsource/phonemes.stamp espeak-ng-data/%_dict: src/espeak-ng phsource/phonemes.stamp
@echo " DICT $@" @echo " DICT $@"
rm -f $@ rm -f $@
yue: espeak-ng-data/yue_dict yue: espeak-ng-data/yue_dict
dictsource/yue_listx: dictsource/yue_listx:
ln -svf extra/yue_listx dictsource/ ln -svf extra/yue_listx dictsource/

# NOTE: keep in sync with espeak-ng-data/%_dict more generic rule.
if HAVE_YUE_EXTENDED_DICTIONARY if HAVE_YUE_EXTENDED_DICTIONARY
espeak-ng-data/yue_dict: dictsource/yue_list dictsource/yue_rules dictsource/yue_extra dictsource/yue_listx dictsource/yue_emoji
espeak-ng-data/yue_dict: src/espeak-ng phsource/phonemes.stamp dictsource/yue_list dictsource/yue_rules dictsource/yue_extra dictsource/yue_listx dictsource/yue_emoji
else else
espeak-ng-data/yue_dict: dictsource/yue_list dictsource/yue_rules dictsource/yue_extra dictsource/yue_emoji
espeak-ng-data/yue_dict: src/espeak-ng phsource/phonemes.stamp dictsource/yue_list dictsource/yue_rules dictsource/yue_extra dictsource/yue_emoji
endif endif
@echo " DICT $@"
rm -f $@
cd dictsource && ESPEAK_DATA_PATH=$(CURDIR) LD_LIBRARY_PATH=../src:${LD_LIBRARY_PATH} ../src/espeak-ng --compile=yue && cd .. cd dictsource && ESPEAK_DATA_PATH=$(CURDIR) LD_LIBRARY_PATH=../src:${LD_LIBRARY_PATH} ../src/espeak-ng --compile=yue && cd ..


dictsource/yue_emoji: dictsource/yue_emoji:

Loading…
Cancel
Save