From 0185f32beeb9d2a4ae04d92737072cecab35aeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Nov 2008 17:12:05 +0000 Subject: [PATCH] Makefile: Applied changes suggested by Reijo --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 0206f8a97..28ff3a422 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp preprocessor.cpp tokenize.cpp OBJS=$(SRCS:%.cpp=%.o) TESTS=testbufferoverrun.o testcharvar.o testconstructors.o testdivision.o testmemleak.o testother.o testpreprocessor.o testunusedvar.o +BIN = ${DESTDIR}/usr/bin %.o: %.cpp g++ -Wall -pedantic -g -I. -o $@ -c $^ @@ -11,3 +12,6 @@ test: ${OBJS} testrunner.o testsuite.o ${TESTS} g++ -Wall -g -o testrunner $^ clean: rm -f *.o cppcheck_test cppcheck +install: cppcheck + install -d ${BIN} + install cppcheck ${BIN}