diff --git a/c_src/Makefile b/c_src/Makefile index d3c3767..3907eed 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -4,7 +4,7 @@ CURDIR := $(shell pwd) BASEDIR := $(abspath $(CURDIR)/..) PROJECT ?= $(notdir $(BASEDIR)) -PROJECT := $(strip $(PROJECT)) +PROJECT := erlang-sha3 ERTS_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s/erts-~s/include/\", [code:root_dir(), erlang:system_info(version)]).") ERL_INTERFACE_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s\", [code:lib_dir(erl_interface, include)]).")