我正在创建一个拼写检查程序,它使用一个名为english.dict
. 我需要安装它$datadir
(我正在使用 autoconf 和 automake)。我试过这样做:
CFLAGS = -m32 -Wall
LDFLAGS =
bin_PROGRAMS = spellcheck
pkgdata_DATA = english.dict
spellcheck_SOURCES = spellcheck.cpp meta.cpp
spellcheck_LDADD = ../libspellcheck/libspellcheck.a
但是在运行 make 时:
make all-recursive
make[1]: Entering directory `/home/iandun/libspellcheck-devel/libspellcheck'
Making all in libspellcheck
make[2]: Entering directory `/home/iandun/libspellcheck-devel/libspellcheck/libspellcheck'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/iandun/libspellcheck-devel/libspellcheck/libspellcheck'
Making all in spellcheck
make[2]: Entering directory `/home/iandun/libspellcheck-devel/libspellcheck/spellcheck'
make[2]: *** No rule to make target `english.dict', needed by `all-am'. Stop.
make[2]: Leaving directory `/home/iandun/libspellcheck-devel/libspellcheck/spellcheck'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/iandun/libspellcheck-devel/libspellcheck'
make: *** [all] Error 2
我尝试了很多方法,并阅读了官方文档和其他堆栈溢出问题,但仍然无法弄清楚。我可能很傻,但我不知道该怎么办...