当前位置: 技术问答>linux和unix
高分请教:下面的makefile是什么意思?
来源: 互联网 发布时间:2015-11-11
本文导语: 下面是nessus扫描器中nessus-core的一个makefile中的开始一部分内容,以前在windows下编程,对linux编程不熟悉,所以请教各位,麻烦解析一下,谢谢! ------------------------------...
下面是nessus扫描器中nessus-core的一个makefile中的开始一部分内容,以前在windows下编程,对linux编程不熟悉,所以请教各位,麻烦解析一下,谢谢!
--------------------------------------------
include nessus.tmpl
ALLDEPS = nessus.tmpl
all: $(ALLDEPS) $(CLIENT) server sslstuff doc fetchtool
nessus.tmpl: nessus.tmpl.in configure VERSION
$(SHELL) configure $(CONFIGURE_ARGS)
touch $@
install: all $(CLIENT_INSTALL) install-bin install-man
@echo
@echo ' --------------------------------------------------------------'
@echo ' nessus-core has been sucessfully installed. '
@echo " Make sure that $(bindir) and $(sbindir) are in your PATH before"
@echo " you continue."
@echo " nessusd has been installed into $(sbindir)"
@echo ' --------------------------------------------------------------'
@echo
--------------------------------------------
include nessus.tmpl
ALLDEPS = nessus.tmpl
all: $(ALLDEPS) $(CLIENT) server sslstuff doc fetchtool
nessus.tmpl: nessus.tmpl.in configure VERSION
$(SHELL) configure $(CONFIGURE_ARGS)
touch $@
install: all $(CLIENT_INSTALL) install-bin install-man
@echo
@echo ' --------------------------------------------------------------'
@echo ' nessus-core has been sucessfully installed. '
@echo " Make sure that $(bindir) and $(sbindir) are in your PATH before"
@echo " you continue."
@echo " nessusd has been installed into $(sbindir)"
@echo ' --------------------------------------------------------------'
@echo
|
1、nessus.tmpl类似C里的include文件。
2、man mak。搞清楚目标、依赖和action,就明白了。
2、man mak。搞清楚目标、依赖和action,就明白了。
|
就是些依赖关系和需要执行的命令,去看下makefile的介绍吧