aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-25 19:30:17 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-25 19:30:17 -0600
commitfd0433603e3af58935efcbc69d97a69b4f0f56d5 (patch)
treef0587589a3d18915c4dcff07b99cd5fc2ca28999
parentcd61c8e72b99006056635a219a62bfe1c523cc64 (diff)
downloadyapymake-fd0433603e3af58935efcbc69d97a69b4f0f56d5.tar.gz
yapymake-fd0433603e3af58935efcbc69d97a69b4f0f56d5.zip
special targets aren't non-special targets
-rw-r--r--yapymake/makefile/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yapymake/makefile/__init__.py b/yapymake/makefile/__init__.py
index c3cdddf..5e879d0 100644
--- a/yapymake/makefile/__init__.py
+++ b/yapymake/makefile/__init__.py
@@ -148,7 +148,7 @@ class Makefile:
else:
# it's a target rule!
for target in targets:
- if self.first_non_special_target is None:
+ if self.first_non_special_target is None and not target.startswith('.'):
self.first_non_special_target = target
# > A target that has prerequisites, but does not have any commands, can be used to add to the
# > prerequisite list for that target.