]> git.refcnt.org Git - colorize.git/blob - Makefile
Add Makefile release target
[colorize.git] / Makefile
1 .PHONY: check clean
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
17
18 clean:
19 rm -f a.out colorize debug.txt version.h
20
21 release:
22 sh ./release.sh