Skip to content

Commit

Permalink
embed: use /usr/local as default prefix for OS X install in Makefile
Browse files Browse the repository at this point in the history
resolves #21.
  • Loading branch information
vsergeev committed Jul 8, 2016
1 parent 41437ca commit 0170b38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions embed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

################################################################################
Expand Down

0 comments on commit 0170b38

Please sign in to comment.