$NetBSD: patch-Makefile,v 1.1 2016/07/01 20:32:35 agc Exp $ avoid some hardcoded paths --- Makefile 2016/07/01 17:48:16 1.1 +++ Makefile 2016/07/01 17:49:30 @@ -39,19 +39,19 @@ SHELL = /bin/sh # The CMake executable. -CMAKE_COMMAND = /usr/local/Cellar/cmake/3.4.1/bin/cmake +CMAKE_COMMAND = cmake # The command to remove a file. -RM = /usr/local/Cellar/cmake/3.4.1/bin/cmake -E remove -f +RM = cmake -E remove -f # Escaping for special characters. EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/hodduc/go/src/github.com/devsisters/goquic/libquic +CMAKE_SOURCE_DIR:= $(shell pwd) # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/hodduc/go/src/github.com/devsisters/goquic/libquic +CMAKE_BINARY_DIR:= $(shell pwd) #============================================================================= # Targets provided globally by CMake. @@ -59,7 +59,7 @@ # Special rule for the target edit_cache edit_cache: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." - /usr/local/Cellar/cmake/3.4.1/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) + ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) .PHONY : edit_cache # Special rule for the target edit_cache @@ -70,7 +70,7 @@ # Special rule for the target rebuild_cache rebuild_cache: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." - /usr/local/Cellar/cmake/3.4.1/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) + cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) .PHONY : rebuild_cache # Special rule for the target rebuild_cache