aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-25 20:01:31 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-25 20:01:31 -0600
commit31aafd958390d3325206c2b9043a380acb49e00d (patch)
tree566f574e1f627d0bf7266861426dd5b28d263785
parentc62af0971d6d759f49e4cd39e931b3cc05a37cc4 (diff)
downloadyapymake-31aafd958390d3325206c2b9043a380acb49e00d.tar.gz
yapymake-31aafd958390d3325206c2b9043a380acb49e00d.zip
lint for non-POSIXful includes
-rw-r--r--yapymake/makefile/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yapymake/makefile/__init__.py b/yapymake/makefile/__init__.py
index 006dfbe..0290e9f 100644
--- a/yapymake/makefile/__init__.py
+++ b/yapymake/makefile/__init__.py
@@ -93,6 +93,8 @@ class Makefile:
# > more non-empty fields, the behavior is unspecified. If it results in one non-empty field, that
# > field is taken as the pathname.
# (GNU make will include each field separately, so let's do that here)
+ if len(fields) != 1:
+ print('warning: non-POSIX multi-file include')
for included_file in fields:
# > The contents of the file specified by the pathname shall be read and processed as if they
# > appeared in the makefile in place of the include line.