对于“错误:应该使用哪个目录:使用了'extra_PROGRAMS',但未定义'extradir'"? [英] What directory should I use for "error: 'extra_PROGRAMS' is used but 'extradir' is undefined"?

查看:230
本文介绍了对于“错误:应该使用哪个目录:使用了'extra_PROGRAMS',但未定义'extradir'"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个autoconf/automake系统,该系统具有一个名为stand的独立目标.我不希望正常构建stand,所以我的Makefile.am中有此文件:

I have a autoconf/automake system that has a stand-alone target called stand. I don't want stand to be normally built, so I have this in my Makefile.am:

bin_PROGRAMS = grace
extra_PROGRAMS = stand
...
stand_SOURCES = stand.cpp barry.cpp ...

这已经工作了一段时间了,但是automake刚刚在我的系统上更新了,现在我收到此错误:

This has worked for a while, but automake just got updated on my system and I'm now getting this error:

src/Makefile.am:4: error: 'extra_PROGRAMS' is used but 'extradir' is undefined
src/Makefile.am:66: warning: variable 'stand_SOURCES' is defined but no program or
src/Makefile.am:66: library has 'stand' as canonical name (possible typo)

所以我添加了这个:

extradir = .

但这已引起问题.

我不希望安装stand程序.对我来说这只是一个测试程序.但这不是正式测试套件的一部分,只是出于我自己的目的.我该怎么办?

I don't want the stand program installed. It's just a test program for me. But it's not part of a formal test suite, it's just for my own purposes. What should I do?

推荐答案

我们发现了这个错误!事实证明,extra必须大写,如下所示:

We found the bug! It turns out that extra needs to be capitalized, like this:

bin_PROGRAMS = grace
EXTRA_PROGRAMS = stand
...
stand_SOURCES = stand.cpp barry.cpp ...

这篇关于对于“错误:应该使用哪个目录:使用了'extra_PROGRAMS',但未定义'extradir'"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆