Commit Graph
2 Commits
Author SHA1 Message Date
Sergei Trofimovich ccb1c31ba3 compiledict.c: change 'temp' to "${dict}temp" temporary file
This way we can compile multiple dictionaries at a time without
stepping on 'temp' file from different compilation steps:

    $ make -j8 -B
    ...
    make[1]: *** [Makefile:3082: espeak-ng-data/an_dict] Segmentation fault (core dumped)
    make[1]: *** Deleting file 'espeak-ng-data/an_dict'
    make[1]: *** [Makefile:3082: espeak-ng-data/az_dict] Segmentation fault (core dumped)
    make[1]: *** Deleting file 'espeak-ng-data/az_dict'
2021-11-07 12:55:57 +00:00
Sergei Trofimovich 9dba972b8a 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.
2021-10-26 22:13:14 +01:00