Make MacOS Makefile stuff more compact
authorClifford Wolf <clifford@clifford.at>
Sat, 11 Feb 2017 09:19:21 +0000 (10:19 +0100)
committerClifford Wolf <clifford@clifford.at>
Sat, 11 Feb 2017 09:19:21 +0000 (10:19 +0100)
Makefile

index 58c282c3c33b77711271d4ff6b63f7591cb8338a..77651fdbf275cbead7baa17663ec2131efabb2a2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -62,31 +62,23 @@ SED ?= sed
 BISON ?= bison
 
 ifeq (Darwin,$(findstring Darwin,$(shell uname)))
-
 # homebrew search paths
 ifneq ($(shell which brew),)
 BREW_PREFIX := $(shell brew --prefix)/opt
-
 CXXFLAGS += -I$(BREW_PREFIX)/readline/include
 LDFLAGS += -L$(BREW_PREFIX)/readline/lib
-
 PKG_CONFIG_PATH := $(BREW_PREFIX)/libffi/lib/pkgconfig:$(PKG_CONFIG_PATH)
 PKG_CONFIG_PATH := $(BREW_PREFIX)/tcl-tk/lib/pkgconfig:$(PKG_CONFIG_PATH)
-
 export PATH := $(BREW_PREFIX)/bison/bin:$(BREW_PREFIX)/gettext/bin:$(BREW_PREFIX)/flex/bin:$(PATH)
 
 # macports search paths
 else ifneq ($(shell which port),)
 PORT_PREFIX := $(patsubst %/bin/port,%,$(shell which port))
-
 CXXFLAGS += -I$(PORT_PREFIX)/include
 LDFLAGS += -L$(PORT_PREFIX)/lib
-
 PKG_CONFIG_PATH := $(PORT_PREFIX)/lib/pkgconfig:$(PKG_CONFIG_PATH)
-
 export PATH := $(PORT_PREFIX)/bin:$(PATH)
 endif
-
 else
 LDFLAGS += -rdynamic
 LDLIBS += -lrt