Dont mix Homebrew and MacPorts build options
authorSteffen Vogel <post@steffenvogel.de>
Fri, 10 Feb 2017 13:04:42 +0000 (10:04 -0300)
committerSteffen Vogel <post@steffenvogel.de>
Fri, 10 Feb 2017 13:04:42 +0000 (10:04 -0300)
Makefile

index 50dc1b865bec9937c864c52cae8b9a852d4c6426..1a430277f0f90dea5c0021bde9f2bc5114a4a24f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,10 +73,9 @@ LDFLAGS += -L$(BREW_PREFIX)/readline/lib
 PKG_CONFIG_PATH := $(BREW_PREFIX)/libffi/lib/pkgconfig:$(PKG_CONFIG_PATH)
 
 export PATH := $(BREW_PREFIX)/bison/bin:$(BREW_PREFIX)/gettext/bin:$(BREW_PREFIX)/flex/bin:$(PATH)
-endif
 
 # macports search paths
-ifneq ($(shell which port),)
+else ifneq ($(shell which port),)
 PORT_PREFIX := $(patsubst %/bin/port,%,$(shell which port))
 
 CXXFLAGS += -I$(PORT_PREFIX)/include