Makefile command substitution problem

前端 未结 2 1321
星月不相逢
星月不相逢 2020-12-31 08:13

rebar doesn\'t automatically rebuild files when given a different configuration file. So, I\'ve tried to do it on the Makefile level:

REBAR=./rebar
REBAR_DEB         


        
相关标签:
2条回答
  • 2020-12-31 08:45

    You can also use the shell assignment operator

    LAST_CONFIG != cat config.tmp
    

    § How make Reads a Makefile

    Example

    0 讨论(0)
  • 2020-12-31 08:49

    You're missing the part where you need to use shell in order to actually call external programs when defining a variable.

    LAST_CONFIG:=$(shell cat config.tmp)
    
    0 讨论(0)
提交回复
热议问题