From 0170b38a50d7612ad960ac49612661d9a8615708 Mon Sep 17 00:00:00 2001 From: Vanya Sergeev Date: Fri, 8 Jul 2016 11:37:06 -0700 Subject: [PATCH] embed: use /usr/local as default prefix for OS X install in Makefile resolves #21. --- embed/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/embed/Makefile b/embed/Makefile index 0297e088e..6507f8e4b 100644 --- a/embed/Makefile +++ b/embed/Makefile @@ -29,7 +29,12 @@ LIB_OBJS := $(patsubst $(GEN_DIR)/%.c, $(BUILD_DIR)/%.o, $(LUA_C_SRCS)) $(patsub EXAMPLE_BINS = $(patsubst $(EXAMPLE_DIR)/%.c, $(BUILD_DIR)/$(EXAMPLE_DIR)/%, $(EXAMPLE_SRCS)) TEST_BINS = $(patsubst $(TEST_DIR)/%.c, $(BUILD_DIR)/$(TEST_DIR)/%, $(TEST_SRCS)) +ifneq ($(shell uname -s),Darwin) PREFIX ?= /usr +else +PREFIX ?= /usr/local +endif + INSTALL_CMOD = $(shell pkg-config luajit --variable INSTALL_CMOD) ################################################################################