From: simon Date: Mon, 24 Jan 2005 11:06:31 +0000 (+0000) Subject: Use .PHONY to ensure the various fake make targets (`all', `clean', X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/7ce668da12f87c756ce5701ba637f7cfbe0a2224 Use .PHONY to ensure the various fake make targets (`all', `clean', `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 --- diff --git a/Makefile b/Makefile index eab0e3e..27ed0c3 100644 --- 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)