]> git.refcnt.org Git - colorize.git/commitdiff
Keep makefile simple
authorSteven Schubiger <stsc@refcnt.org>
Sun, 10 Feb 2013 19:20:22 +0000 (20:20 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 10 Feb 2013 19:20:22 +0000 (20:20 +0100)
Makefile

index 57b59fa95e0e2b0d69f48a5716c5f250731f5d03..41b8450d2b3344ce5eca77a95fb7604b0a97bc9e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,11 @@ SHELL=/bin/sh
 CC=gcc
 CFLAGS=-Wall -Wextra -Wformat -Wswitch-default -Wuninitialized -Wunused -Wno-unused-function -Wno-unused-parameter
 
-colorize:      colorize.o
-                       $(CC) -o $@ $<
-
-colorize.o:    colorize.c
-                       $(CC) $(CFLAGS) -c $< -DCFLAGS="$(CFLAGS)"
+colorize:      colorize.c
+                       $(CC) $(CFLAGS) -o $@ $< -DCFLAGS="$(CFLAGS)"
 
 check:
                        perl ./test.pl
 
 clean:
-                       [ -e colorize.o ] && rm colorize.o; exit 0
+                       [ -e colorize ] && rm colorize; exit 0