$OpenBSD: patch-deps_hiredis_Makefile,v 1.2 2012/02/28 11:57:11 dcoppa Exp $ --- deps/hiredis/Makefile.orig Wed Feb 22 14:23:43 2012 +++ deps/hiredis/Makefile Tue Feb 28 12:41:24 2012 @@ -12,9 +12,9 @@ HIREDIS_MINOR=10 # Fallback to gcc when $CC is not in $PATH. CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc') -OPTIMIZATION?=-O3 -WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings -DEBUG?= -g -ggdb +# OPTIMIZATION?=-O3 +WARNINGS=-Wstrict-prototypes -Wwrite-strings +# DEBUG?= -g -ggdb REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH) REAL_LDFLAGS=$(LDFLAGS) $(ARCH) @@ -116,8 +116,12 @@ endif INSTALL?= cp -a +ifndef INSTALL_DIR + INSTALL_DIR= mkdir -p +endif + install: $(DYLIBNAME) $(STLIBNAME) - mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH) + $(INSTALL_DIR) $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH) $(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH) $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME) cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME)