Add valgrind target

Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/4e612a88
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/4e612a88
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/4e612a88

Branch: refs/heads/master
Commit: 4e612a886f76171e89489f70cff63b65d82bf0c5
Parents: db9c60c
Author: Nick Wellnhofer <[email protected]>
Authored: Wed Nov 5 17:53:36 2014 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Wed Nov 5 17:53:36 2014 +0100

----------------------------------------------------------------------
 Makefile | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/4e612a88/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index aba491a..8221cac 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,8 @@ meld:
 $(CHARMONY_H): $(PROGNAME)
        ./$(PROGNAME) --cc=$(CC) --enable-c
 
+valgrind: $(PROGNAME)
+       valgrind --leak-check=full ./$(PROGNAME) --cc=$(CC) --enable-c
 
 $(PROGNAME): $(OBJS)
        $(CC) $(CFLAGS) $(OBJS) -o $(PROGNAME)

Reply via email to