Use .PHONY to ensure the various fake make targets (`all', `clean',
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 24 Jan 2005 11:06:31 +0000 (11:06 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 24 Jan 2005 11:06:31 +0000 (11:06 +0000)
`install' etc) don't get confused by the existence of a file with
the same name. Required in particular for `make install' on OS X,
since otherwise its case-insensitive fs gets confused by INSTALL.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@5189 cda61777-01e9-0310-a592-d414129be87e

Makefile

index eab0e3e..27ed0c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,12 +9,15 @@
 # Currently depends on GNU make, because:
 #  - the Makefile uses GNU ifdef / ifndef commands and GNU make `%'
 #    pattern rules
+#  - we use .PHONY
 
 prefix=/usr/local
 exec_prefix=$(prefix)
 bindir=$(exec_prefix)/bin
 INSTALL=install -c
 
+.PHONY: all install clean spotless topclean release
+
 ifdef RELEASE
 ifndef VERSION
 VERSION := $(RELEASE)