使用make install时“没有规则使目标`install`”错误

时间:2016-02-25 09:02:18

标签: 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 -ffreestanding”命令的输出在

之下
[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.

有关如何解决它的任何想法?

非常感谢

1 个答案:

答案 0 :(得分:1)

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

你可以实现" dist"在Makefile中定位它以查看它实际打包的内容。也许这提供了应该安装什么的提示。

dist:
    @bin/waf dist