Syntax 如何更改程序';s在Makefile.am中的名称

Syntax 如何更改程序';s在Makefile.am中的名称,syntax,makefile,autotools,Syntax,Makefile,Autotools,当前makefile.am中的代码如下所示: performancetestsdir = $(prefix)/tests/@PACKAGE@/performance-test performancetests_PROGRAMS = eventwindowperformancetest 生成后,我想以“oldeventwindowperformancetest”的名义制作程序“eventwindowperformancetest” 我该怎么办? 谢谢你,有几种可能性: 将Makefile.am中

当前makefile.am中的代码如下所示:

performancetestsdir = $(prefix)/tests/@PACKAGE@/performance-test
performancetests_PROGRAMS = eventwindowperformancetest
生成后,我想以“oldeventwindowperformancetest”的名义制作程序“eventwindowperformancetest”

我该怎么办? 谢谢你,有几种可能性:

  • 将Makefile.am中的名称更改为您想要的名称(当您真正想要将程序构建为XX时,将程序构建为XY有什么意义?)
  • 使用“-program transform name”标志配置以转换输出程序的名称
  • 添加一个生成后钩子,为您重命名文件。比如:
    all-local: oldeventwindowperformancetest
    oldeventwindowperformancetest: eventwindowperformancetest
            cp "$^" "$@"