branch: elpa/sqlite3
commit 4fb76019d39e288b2dcd2e6ef2162781c60d29b3
Author: Kevin Rineer <[email protected]>
Commit: Kevin Rineer <[email protected]>
fix(Makefile): Make generic the paths to emacs and sqlite
---
Makefile | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index fc4f9a330c2..b0f378429b8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,19 +3,14 @@ INC ?= -I.
LIB ?= -lsqlite3
ifeq ($(HOMEBREW), 1)
- INC=-I/usr/local/opt/sqlite3/include
- LIB=-L/usr/local/opt/sqlite3/lib -lsqlite3
-endif
-
-ifeq ($(LINUXBREW), 1)
- PREFIX=/home/linuxbrew/.linuxbrew/opt
+ 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)