Hello,
I've got a Makefile which has a couple of targets (all, install, uninstall). I'm trying to use the $JAVA_HOME environment variable, which works perfect in the all target, but when the install target is executed, the $JAVA_HOME variable seems to be empty (although it is not - I have checked in the terminal). Does anyone have any ideas?
all:
# This works good
@echo ${JAVA_HOME}
ifeq ($(UNAME), Linux)
install:
# This prints a blank line.
@echo ${JAVA_HOME}
# Doing stuff here
uninstall:
# Doing stuff here
endif
Thanks,
Chris