Why does this not work and if it is wrong how DO I do a conditional that would work?
file1:
Expand|Select|Wrap|Line Numbers
- test = "tom"
- all: test
- .PHONY test:
- test:
- ifeq ($(test), "tom")
- @echo "this works"
- endif
- OR...............
- test:
- ifeq ("$(test)","tom")
- @echo "this works"
- endif
- OR....
- ifeq $(test) "tom"
- @echo "this works"
- endif
- EVEN this doesn't work:
- ifdef $(test)
- @echo "nope, this doesn't work also"
- endif
So, how DO you do conditional execution of variables, either
internally set or environmentally set?