Skip to content

Commit

Permalink
fix: Makefile OS detection
Browse files Browse the repository at this point in the history
  • Loading branch information
malandis committed Aug 13, 2024
1 parent f9bd714 commit 1a4c4f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ DOTNET_VERSION := net6.0
TEST_LOGGER_OPTIONS := --logger "console;verbosity=detailed"

# Windows-specific settings
ifeq ($(OS), Windows_NT)
# This tests if "NT" is in the OS string, which would indicate Windows.
ifneq (,$(findstring NT,$(OS)))
BUILD_TARGETS := build-dotnet6 build-dotnet-framework
TEST_TARGETS := test-dotnet6 test-dotnet-framework
else
Expand All @@ -32,7 +33,6 @@ build: ${BUILD_TARGETS}

## Build the project for .NET 6.0
build-dotnet6:
echo "Detected OS was: ${OS}"
@echo "Building the project for .NET 6.0..."
@dotnet build -f ${DOTNET_VERSION} ${GRPC_WEB_FLAG}

Expand Down

0 comments on commit 1a4c4f4

Please sign in to comment.