From f5cdcbbd5b3b970183e61c24100087e1bf5bbc38 Mon Sep 17 00:00:00 2001 From: benn Date: Thu, 24 Apr 2025 11:20:01 +0200 Subject: [PATCH] Fix incorrect variable for OS --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4cbc821..0dda252 100755 --- a/Makefile +++ b/Makefile @@ -56,13 +56,13 @@ endif # OS dependent flags # OS := $(shell uname -s) -ifeq ($(UNAME_S),Linux) +ifeq ($(OS),Linux) # installed by system and in PATH CPPCHECK := cppcheck DBG_REL += endif # OpenIndiana and flavours -ifeq ($(UNAME_S),SunOS) +ifeq ($(OS),SunOS) # local installation CPPCHECK := $(HOME)/devl/cppcheck/bin/cppcheck DBG_REL += @@ -119,11 +119,13 @@ $(APP): $(OBJS) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(CXX) $(CXXFLAGS) -o $@ -c $< -DIRS: obj bin +.PHONEY: DIRS +DIRS: mkdir -p obj bin cppcheck.out: $(SRC) $(info output to cppcheck.out) + $(info Check using: : $(CPPCHECK)) $(CPPCHECK) $(CHECKFLAGS) $^ > $@ 2>&1 .PHONY: clean