Using pwd in ERL_LIBS allows standard usage of include.

Also, this allows one to use the same include when using the code in a release
(a la relx, etc.).
This commit is contained in:
Duncan M. McGreggor 2015-05-19 23:12:13 -05:00
parent 2ea5b9289c
commit 47d70c8772
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ and execution will cease.
.. code:: scheme .. code:: scheme
(include-lib "deps/calrissian/include/monads.lfe") (include-lib "calrissian/include/monads.lfe")
(defun dostuff () (defun dostuff ()
(do-m (monad 'error) (do-m (monad 'error)

View file

@ -9,7 +9,7 @@ OUT_DIR = ./ebin
TEST_DIR = ./test TEST_DIR = ./test
TEST_OUT_DIR = ./.eunit TEST_OUT_DIR = ./.eunit
SCRIPT_PATH=$(DEPS)/lfe/bin:.:./bin:"$(PATH)":/usr/local/bin SCRIPT_PATH=$(DEPS)/lfe/bin:.:./bin:"$(PATH)":/usr/local/bin
ERL_LIBS=$(shell $(LFETOOL) info erllibs) ERL_LIBS=$(shell pwd):$(shell $(LFETOOL) info erllibs)
EMPTY = EMPTY =
ifeq ($(shell which lfetool),$EMPTY) ifeq ($(shell which lfetool),$EMPTY)
LFETOOL=$(BIN_DIR)/lfetool LFETOOL=$(BIN_DIR)/lfetool