Made makefile more robust
authorJason Axelson (dell.server) <jason.axelson@gmail.com>
Mon, 27 Apr 2009 03:08:11 +0000 (17:08 -1000)
committerJason Axelson (dell.server) <jason.axelson@gmail.com>
Mon, 27 Apr 2009 03:13:22 +0000 (17:13 -1000)
By using the .PHONY directive we can avoid errors that appear when there
are already files by that name in the directory.

For example: If we put a file called clean in the directory, than make
clean would not execute because the file 'clean' is already made.

Makefile

index 4f4e6f0..de4fe4d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 CPPFLAGS=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0) -Wall -W
 LDFLAGS=$(shell pkg-config --libs gtk+-2.0 webkit-1.0)
+.PHONY: all test clean install
 all: uzbl
 
 test: