Merge pull request #763 from btiernay/issue-752-fix-macos-makefile-error

fix: Makefile OS conditional
This commit is contained in:
Kubernetes Prow Robot
2023-06-15 17:06:18 -07:00
committed by GitHub
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