我正在创建一个使用名为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
我尝试了很多方法,以及阅读官方文档和其他堆栈溢出问题,仍然无法弄清楚这一点。我可能很蠢,但我不知道该怎么做......