commit 131db6a9399cee16eb4eca59dd9112308d1c44f0
parent e55694bdbbce60572c4a59a1a6dc69cde012f308
Author: Alan Post <adp@prgmr.com>
Date: Fri, 19 Jul 2019 15:06:35 -0600
remove phony targets from TARGETS, add them as .PHONY prerequisites.
For version of make that support it (GNU make, OpenBSD, NetBSD, and
others), the .PHONY special target will arrange to always run a
rule whose name appears as a prerequisite, regardless of whether the
target exists or is up to date.
With these names no longer in TARGETS, they will not be removed if
they are created, though the build will no longer consider them.
The build will not create these targets as files under any normal
circumstance, so a make that does not recognize the .PHONY special
target should silently ignore it, but a user would have to manually
remove any files with the name of a phony target they otherwise
created.
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -4,6 +4,8 @@ SHELL=/bin/sh
default: it
+.PHONY: check clean default it man
+
addresses.0: \
addresses.5
nroff -man addresses.5 > addresses.0
diff --git a/TARGETS b/TARGETS
@@ -320,7 +320,6 @@ binm2
binm2+df
binm3
binm3+df
-it
qmail-local.0
qmail-lspawn.0
qmail-getpw.8
@@ -382,7 +381,5 @@ mbox.0
addresses.0
envelopes.0
forgeries.0
-man
setup
-check
qtmp.h