]> git.refcnt.org Git - colorize.git/blobdiff - Makefile
Stack and release color names memory
[colorize.git] / Makefile
index 4f7e84365f946281b1b35426a7a7a807d46b33ab..2c111eb9966b62185dbf25116dc0670d5aa0340c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: check clean
+.PHONY: check check_valgrind clean release
 
 .SUFFIXES:
 .SUFFIXES: .c .o
@@ -13,7 +13,14 @@ colorize:    colorize.c
                        $(CC) $(CFLAGS) -o colorize colorize.c -DCFLAGS="$(CFLAGS)" -DHAVE_VERSION $(FLAGS)
 
 check:
-                       perl ./test.pl
+                       perl ./test.pl --regular
+
+check_valgrind:
+                       @which valgrind >/dev/null 2>&1 || (printf '%s\n' "valgrind not found" && exit 1)
+                       perl ./test.pl --valgrind || exit 0
 
 clean:
-                       rm -f colorize debug.txt version.h
+                       rm -f a.out colorize debug.txt version.h
+
+release:
+                       sh ./release.sh