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