aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ca0ee68..d061794 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,11 @@ CC=gcc
CFLAGS=-ansi -pedantic
colorize: colorize.c
- $(CC) $(CFLAGS) -o colorize colorize.c -DCFLAGS="$(CFLAGS)"
+ perl ./version.pl > version.h
+ $(CC) $(CFLAGS) -o colorize colorize.c -DCFLAGS="$(CFLAGS)" -DHAVE_VERSION
check:
perl ./test.pl
clean:
- [ -e colorize ] && rm colorize; exit 0
+ rm -f colorize version.h