X-Git-Url: http://git.refcnt.org/?a=blobdiff_plain;f=Makefile;h=da60da20f5ad567438df5b3852dd0dee9381f441;hb=3fea379ff56e28600ec70fbabfa0392cf8dfac08;hp=41b8450d2b3344ce5eca77a95fb7604b0a97bc9e;hpb=c4db09c7cb72cf9588968bb120edaa7f6d2313c6;p=colorize.git diff --git a/Makefile b/Makefile index 41b8450..da60da2 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,22 @@ -.PHONY: clean +.PHONY: check clean release .SUFFIXES: .SUFFIXES: .c .o SHELL=/bin/sh CC=gcc -CFLAGS=-Wall -Wextra -Wformat -Wswitch-default -Wuninitialized -Wunused -Wno-unused-function -Wno-unused-parameter +CFLAGS=-ansi -pedantic +FLAGS= # command-line macro colorize: colorize.c - $(CC) $(CFLAGS) -o $@ $< -DCFLAGS="$(CFLAGS)" + perl ./version.pl > version.h + $(CC) $(CFLAGS) -o colorize colorize.c -DCFLAGS="$(CFLAGS)" -DHAVE_VERSION $(FLAGS) check: perl ./test.pl clean: - [ -e colorize ] && rm colorize; exit 0 + rm -f a.out colorize debug.txt version.h + +release: + sh ./release.sh