Re: Plain space as .RECIPEPREFIX ?

Paul Smith <[email protected]> Tue, 10 Jun 2025 13:09:36 -0400
Newsgroups gmane.comp.gnu.make.general
Organization GNU's Not UNIX!
Message-ID <[email protected]>
On Tue, 2025-06-10 at 08:44 -0700, Felix Lechner via Users list for the
GNU implementation of make wrote:
> Is it possible to use plain spaces as the .RECIPREPREFIX?

Sure it works fine.  The difficult bit is finding a way to set the
value to a space.  You have to use the normal tricks; for example, this
works:


  $ cat Makefile
  # Set the variable S to contain one space
  E :=
  S := $E $E

  .RECIPEPREFIX := $S

  all:
   echo hi

  $ make
  echo hi
  hi