1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-02 16:43:02 +00:00

Set module/*syspath* to JANET_PATH at build time

The takes out the hardcoded reference to /usr/local/
This commit is contained in:
Calvin Rose
2019-02-18 14:31:23 -05:00
parent d2d502b9ae
commit 660a2b41ae
3 changed files with 7 additions and 2 deletions

View File

@@ -35,7 +35,8 @@ MANPATH?=$(PREFIX)/share/man/man1/
DEBUGGER=gdb
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden \
-DJANET_BUILD=$(JANET_BUILD)
-DJANET_BUILD=$(JANET_BUILD) \
-DJANET_DEFAULT_PATH="\"$(JANET_PATH)\""
UNAME:=$(shell uname -s)
ifeq ($(UNAME), Darwin)