Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, In a Makefile I would like to know how to escape parenthesis inside a shell call like this: GL_LIBS := $(shell case `uname` in "Darwin") echo "-framework OpenGL";; "Linux") ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    6

    Makefile shell parenthesis

    Hi,
    In a Makefile I would like to know how to escape parenthesis inside a shell call like this:

    GL_LIBS := $(shell case `uname` in "Darwin") echo "-framework OpenGL";; "Linux") echo "-lGL";; esac)

    Thanks

  2. #2
    Just Joined!
    Join Date
    Jul 2008
    Posts
    6
    found the answer, for someone else interested by the answer:

    CMD := case `uname` in "Darwin") echo "-framework OpenGL";; "Linux") echo "-lGL";; esac
    GL_LIBS := $(shell $(CMD))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...