]> git.refcnt.org Git - colorize.git/blob - Makefile
Run tests through valgrind
[colorize.git] / Makefile
1 .PHONY: check check_valgrind clean release
2
3 .SUFFIXES:
4 .SUFFIXES: .c .o
5
6 SHELL=/bin/sh
7 CC=gcc
8 CFLAGS=-ansi -pedantic
9 FLAGS= # command-line macro
10
11 colorize: colorize.c
12 perl ./version.pl > version.h
13 $(CC) $(CFLAGS) -o colorize colorize.c -DCFLAGS="$(CFLAGS)" -DHAVE_VERSION $(FLAGS)
14
15 check:
16 perl ./test.pl --regular
17
18 check_valgrind:
19 @which valgrind >/dev/null 2>&1 || (printf '%s\n' "valgrind not found" && exit 1)
20 perl ./test.pl --valgrind || exit 0
21
22 clean:
23 rm -f a.out colorize debug.txt version.h
24
25 release:
26 sh ./release.sh