Is there a way to tell automake not to interpret part of the automakefile?

后端 未结 4 857
情话喂你
情话喂你 2021-01-18 10:06

Is there a way to tell automake not to interpret part of the Makefile.am?

Specifically, I am trying to encode a Makefile conditional in a Makefile.am. As other peop

4条回答
  •  隐瞒了意图╮
    2021-01-18 10:55

    I managed to find a different solution. You can put your to-be-escaped bits in a separate file and then do:

    $(eval include $(srcdir)/Include.Makefile)
    

    Since automake doesn't understand $(eval it just leaves the entire line intact. Thus you can put whatever you want into the other file and GNU make will happily read it. Note you can't just use include directly since Automake does understand that and will go into the other file.

提交回复
热议问题