I know that for Makefile we can write the following bloc
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.
Any idea about writing the equivalent of this bloc in the makefile.am
?
您必须在源代码中查找生成的输出并引用M4语法。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.