[英]using if statement in Makefile.am(automake)
I know that for Makefile we can write the following bloc 我知道对于Makefile,我们可以编写以下块
ifneq ($(MYAPP_REVISION)_,_)
ifneq ($(MYAPP_REVISION),exported)
myapp_CFLAGS+=-DMYAPP_REVISION=\"$(MYAPP_REVISION)\"
myapp_LDFLAGS+=-DMYAPP_REVISION=\"$(MYAPP_REVISION)\"
endif
endif
But if write this bloc in the makefile.am
(autoconf) I will get the build not working. 但是,如果将这个块写入
makefile.am
(autoconf)中,我将无法正常运行。
Any idea about writing the equivalent of this bloc in the makefile.am
? 关于在
makefile.am
写入此块的等效内容的任何想法吗?
您必须在源代码中查找生成的输出并引用M4语法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.