【发布时间】:2013-01-31 19:04:55
【问题描述】:
这是我的项目树结构:
srcdir/Makefile_parent.make
srcdir/src/Makefile_src.make
srcdir/data/Makefile_data.make
srcdir/other/Makefile_other.make
我的问题是如何从我的“Makefile_parent.make”传递一个在子 makefile 中可读的值。我有:
Makefile_parent.make
ParentData = foo
SUBDIRS = src data other
之后,我想从其他的 makefile 中读取它,例如:
Makefile_src.make
GetParentData = $(ParentData)
但不工作总是空虚的......有什么想法吗?
【问题讨论】:
-
你有
Makefile.am吗?这是一个自动工具问题吗?