Gnumake.RECIPEPREFIX problem

I am trying to use a special variable .RECIPEPREFIX to avoid hard-to-reach tabs, but it does not work. My simple test file:

    .RECIPEPREFIX = +

    all:
    + @echo OK

but I get a message:

xxx: 4: *** missing separator. Stop
+3
source share
1 answer

What version of gnu make do you use? 3.81?

Support .RECIPEPREFIX is only supported with 3.82. I checked your sample at 3.82 and it works.

http://cvs.savannah.gnu.org/viewvc/make/NEWS?revision=2.109&root=make&view=markup

  • :.RECIPEPREFIX reset (TAB) - . . ​​ , TAB . reset ; , . , $(. RECIPEPREFIX).
+8

All Articles