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") ...
- 08-28-2008 #1Just 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
- 08-29-2008 #2Just 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))


Reply With Quote