summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel McCarney <daniel@binaryparadox.net>2023-07-10 16:15:15 -0400
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2023-07-11 11:01:20 -0700
commit5e643b4a6d82dedbdb9e1a9b95661432d82b7cb5 (patch)
tree24f401ed7ac22fa6706ea65c0722ace5f0f798b7
parent63c8f5af0ac6038210c9155f6e53d6d7507a7d50 (diff)
Makefile: fix PHONY targets.
The `all`, `clean`, and `test` aren't traditional file targets: they don't produce a built artifact on disk from other files. If there were to be a file with a matching name found in the workdir these targets wouldn't perform their jobs as expected, thinking the workdir was up-to-date. This commit marks these targets as "PHONY" targets, telling Make that they're not associated with produced files and are meta-targets for running helpful commands.
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 033c7e7..965a480 100644
--- a/Makefile
+++ b/Makefile
@@ -60,3 +60,5 @@ install: target/$(PROFILE)/librustls_ffi.a
clean:
rm -rf target
+
+.PHONY: all clean test