Search code examples
makefilesplint

Splint : Cannot open file


When trying to run an analysis on my project with Splint via makefile I got this error message :

Cannot open file: ../splint_evaluationa/my_project/source/*.c

Finished checking --- no code processed

Here is my makefile:

SPLINT_FLAGS =-preproc  \
              -warnposixheaders       \
SRCS=/home/user/splint_evaluationa/my_project/source/*.c
INC_FLAGS=-I/home/user/splint_evaluation/my_project/include

do_splint:
      splint $(SPLINT_FLAGS) $(INC_FLAGS) $(SRCS)

Solution

  • You have a extra a, try that instead:

    SRCS=/home/user/splint_evaluation/my_project/source/*.c