all,
I have found that the same Makefile works well in Mac OS X, but does not work in Ubuntu. The snippet is as following:
start:
@echo $(seperator)
@if [[ "$(PROJECT)" == "" ]]; then \
echo " Project powered by CodeMate!"; \
else \
echo " $(PROJECT)"; \
fi
@echo $(seperator)
and make complains:
/bin/sh: [[: not found
Any idea?
Cheers,
Li
Updates:
I have changed the above conditional Bash statements to:
if test "$(PROJECT)" = ""; then \
then things work fine. So what is wrong with "[["?