Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,31 @@ cmake_force:
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh
SHELL := /bin/sh

# The CMake executable.
CMAKE_COMMAND = /usr/local/bin/cmake
CMAKE_COMMAND := $(shell which cmake)

# The command to remove a file.
RM = /usr/local/bin/cmake -E remove -f
RM := $(CMAKE_COMMAND) -E remove -f

# The top-level source directory.
SRC_ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/topcoder/mockcpp/mockcpp
CMAKE_SOURCE_DIR := $(SRC_ROOT_DIR)


# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/topcoder/mockcpp/mockcpp
CMAKE_BINARY_DIR := $(SRC_ROOT_DIR)

#=============================================================================
# Targets provided globally by CMake.

# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running interactive CMake command-line interface..."
/usr/local/bin/cmake -i .
$(CMAKE_COMMAND) -i .
.PHONY : edit_cache

# Special rule for the target edit_cache
Expand All @@ -57,19 +61,19 @@ edit_cache/fast: edit_cache
# Special rule for the target install
install: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/local/bin/cmake -P cmake_install.cmake
$(CMAKE_COMMAND) -P cmake_install.cmake
.PHONY : install

# Special rule for the target install
install/fast: preinstall/fast
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/local/bin/cmake -P cmake_install.cmake
$(CMAKE_COMMAND) -P cmake_install.cmake
.PHONY : install/fast

# Special rule for the target install/local
install/local: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
/usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
$(CMAKE_COMMAND) -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
.PHONY : install/local

# Special rule for the target install/local
Expand All @@ -79,7 +83,7 @@ install/local/fast: install/local
# Special rule for the target install/strip
install/strip: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
/usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
$(CMAKE_COMMAND) -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
.PHONY : install/strip

# Special rule for the target install/strip
Expand All @@ -98,7 +102,7 @@ list_install_components/fast: list_install_components
# 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/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache

# Special rule for the target rebuild_cache
Expand Down Expand Up @@ -203,4 +207,3 @@ help:
cmake_check_build_system:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system

18 changes: 12 additions & 6 deletions tests/3rdparty/testngpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,26 @@ cmake_force:
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh
SHELL := /bin/sh

# The CMake executable.
CMAKE_COMMAND = /usr/local/bin/cmake
CMAKE_COMMAND := $(shell which cmake)

# The command to remove a file.
RM = /usr/local/bin/cmake -E remove -f
RM := $(CMAKE_COMMAND) -E remove -f

# The top-level source directory.
SRC_ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))

TEST_NG_PP_SRC_ROOT_DIR := $(realpath "$(SRC_ROOT_DIR)/../../../../test-ng-pp")

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/topcoder/test-ng-pp
# CMAKE_SOURCE_DIR = /home/topcoder/test-ng-pp
CMAKE_SOURCE_DIR := $(TEST_NG_PP_SRC_ROOT_DIR)

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/topcoder/test-ng-pp
# CMAKE_BINARY_DIR = /home/topcoder/test-ng-pp
CMAKE_BINARY_DIR := $(TEST_NG_PP_SRC_ROOT_DIR)

#=============================================================================
# Targets provided globally by CMake.
Expand Down Expand Up @@ -343,4 +350,3 @@ help:
cmake_check_build_system:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system