# Old versions of a Java distribution have a `javah` binary, new versions do not. This checks whether or not `javah` can be found in the Java distribution found in the directory `$JAVA_HOME`.
DUMMY:=$(shell which $(JAVA_HOME)/bin/javah)
ifeq($(.SHELLSTATUS),0)
OLD_JAVA=true
endif
JAVAC_CMD=javac -encoding UTF-8
JAVAH_CMD=javah -encoding UTF-8
######### Overrides from the config file(s) #########
ifneq("$(wildcard $(HERE)local.conf)","")
@ -51,6 +46,12 @@ ifndef JAVA_HOME
$(error JAVA_HOME is not set!)
endif
# Old versions of a Java distribution have a `javah` binary, new versions do not. This checks whether or not `javah` can be found in the Java distribution found in the directory `$JAVA_HOME`.
DUMMY:=$(shell which $(JAVA_HOME)/bin/javah)
ifeq($(.SHELLSTATUS),0)
OLD_JAVA=true
endif
JAVA_BIN_DIR=$(JAVA_HOME)/bin
######### C and C++ #########
@ -75,3 +76,14 @@ endif
### YML_PATH is needed in the environment of every call to a program of the YML2 distribution
export YML_PATH=$(YML2_PATH)
# BEGIN // kryptic hack to to replace a space with a newline
# $(subst ${ },${space}, whatever)
null:=
space:=${null}${null}
${space}:=${space}
define\n
endef
# END // kryptic hack to to replace a space with a newline