fix: Makefile OS conditional

This commit is contained in:
Bobby Tiernay
2023-06-09 11:59:46 -04:00
parent f116c9264c
commit c27b4beb6d
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -7,3 +7,4 @@ junit*.xml
debug.test
/output/
coverage.out
.idea/

View File

@@ -65,9 +65,9 @@ IMAGE:=$(REGISTRY)/node-problem-detector:$(TAG)
# support needs libsystemd-dev or libsystemd-journal-dev.
ENABLE_JOURNALD?=1
ifeq ($(go env GOHOSTOS), darwin)
ifeq ($(shell go env GOHOSTOS), darwin)
ENABLE_JOURNALD=0
else ifeq ($(go env GOHOSTOS), windows)
else ifeq ($(shell go env GOHOSTOS), windows)
ENABLE_JOURNALD=0
endif