c - "No rule to make target ` install 使用 make install 时出现 `"错误

标签 c gcc debian

我正在尝试安装 sia-hsd 报警系统, github link

到目前为止 ./configure 输出是

Setting top to                           : /home/siahsd-master
Setting out to                           : /home/siahsd-master/build
Checking for program gcc,cc              : gcc
Checking for program ar                  : /usr/bin/ar
Checking for program pkg-config          : /usr/bin/pkg-config
Checking for 'glib-2.0'                  : yes
Checking for 'talloc'                    : yes
Checking for 'tevent'                    : yes
Checking for 'samba-util'                : yes
Checking for 'ndr'                       : yes
Checking for header stdio.h              : yes
Checking for header stdlib.h             : yes
Checking for header stdint.h             : yes
Checking for header stdbool.h            : yes
Checking for header sys/time.h           : yes
Checking for header sys/types.h          : yes
Checking for header sys/stat.h           : yes
Checking for header netinet/in.h         : yes
Checking for header arpa/inet.h          : yes
Checking for header unistd.h             : yes
Checking for header string.h             : yes
Checking for header fcntl.h              : yes
Checking for header errno.h              : yes
Checking for header talloc.h             : yes
Checking for header glib.h               : yes
Checking for header glibconfig.h         : yes
Checking for header dbi/dbi.h            : yes
Checking for header util/data_blob.h     : yes
Checking for header core/ntstatus.h      : yes
Checking for header charset.h            : yes
Checking for library dbi                 : yes
Checking for library talloc              : yes
Checking for library ndr                 : yes
Checking for library gmp                 : yes
Checking for library hogweed             : yes
Checking for library nettle              : yes
'configure' finished successfully (2.057s)

make“CPP=gcc -E -ffreestand”命令的输出如下

[21/27] cstlib: build/jsonbot.c.7.o -> build/libjsonbot.a
[22/27] cstlib: build/siahs.c.6.o -> build/libsiahs.a
[23/27] cstlib: build/sia.c.5.o -> build/libsia.a
[24/27] cstlib: build/config.c.4.o -> build/libconfig.a
[25/27] cprogram: build/chirond.c.10.o build/ndr_chiron.c.10.o -> build/chirond
[26/27] cprogram: build/siahsd.c.8.o -> build/siahsd
[27/27] cprogram: build/secipd.c.9.o build/crc16.c.9.o build/ndr_secip.c.9.o -> build/secipd
Waf: Leaving directory `/home/siahsd-master/build'
'build' finished successfully (3.389s)

当我使用 make install 命令时,出现此错误:

make: *** No rule to make target `install'.  Stop.

知道如何解决这个问题吗?

非常感谢

最佳答案

如上所述,Makefile 不包含“安装”目标,因此 make 不知道如何生成它。查看 waf 构建文件,它没有提供有关如何实现安装目标的任何线索。显然,构建软件后不需要安装,只需运行即可。

您可以在 Makefile 中实现“dist”目标来查看它实际打包的内容。也许这提供了应该安装什么的提示。

dist:
    @bin/waf dist

关于c - "No rule to make target ` install 使用 make install 时出现 `"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35622622/

相关文章:

c - 从键盘读取单词并将其放入矩阵中

c - 如何防止链接器丢弃函数?

c - Makefile 给出重复错误 C

linux - apt-pin 本地构建的包

linux - Nginx 运行与否?

mysql准备语句: Update query

c - 消息的 Adler32 + adler 总和是否为零(如 CRC32)

c - 如何正确地将包含 int 数组的结构分配给结构数组?

c++ - linux安装sdk后提示No such file or directory,如何解决?

python - 安装Python 3.8.1 --with-openssl --without-root/apt/yum