branch: elpa/sqlite3
commit a6376d769cf0749930b9bc00170e962029210406
Merge: a601c9965e4 4fb76019d39
Author: Peking Duck <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #14 from kevinrineer/generic-makefile
fix(Makefile): Make the paths to emacs and sqlite more generic
---
Makefile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 0c09fa8944f..b0f378429b8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,13 +3,14 @@ INC ?= -I.
LIB ?= -lsqlite3
ifeq ($(HOMEBREW), 1)
- INC=-I/usr/local/opt/sqlite3/include
- LIB=-L/usr/local/opt/sqlite3/lib -lsqlite3
+ PREFIX=$(shell brew --prefix sqlite)
+ INC=-I$(PREFIX)/include
+ LIB=-L$(PREFIX)/lib -lsqlite3
endif
CFLAGS ?= -g3 -Wall -std=c99 $(INC)
-EMACS ?= /Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_14
+EMACS ?= $(shell which emacs)
UNAME_O=$(shell uname -o)
ifeq ($(UNAME_O),Cygwin)