help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running case commands with the shell function?


From: Sébastien Hinderer
Subject: Running case commands with the shell function?
Date: Thu, 14 Sep 2017 13:52:55 +0200

Dear all,

I'd like to be able to write something like this:

flags := \
  $(shell \
    case "$(TARGET)" in \
      i386-*-openbsd5.[5-9]*|i386-*-openbsd[6-9].*) \
        echo "-ccopt -nopie";; \
      *);; \
    esac \
  )

Of course this does not work because the first closing parenthesis is
interpreted as ending the call to the shell function.

Is there a way to actually achieve this, please?

Thanks!

Sébastien.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]