Chameleon: Fix Makefile
The $() in the shell command will be run no matter the if is true or
false. Using "Makefile ifeq" instead of "shell if" to fix this issue.
Move CHAMELEON_HOSTNAME out of the target to make sure it will be
parsed before ifeq.
BUG=b:185973512
TEST=make remote-install to Chameleon fpga successfully
Change-Id: Iaa68e0e2fe10aa29750f89cdd919b0e20dcf6ab5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/chameleon/+/2841995
Reviewed-by: Shyh-In Hwang <josephsih@chromium.org>
Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Tested-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
1 file changed