From 31aafd958390d3325206c2b9043a380acb49e00d Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 25 Mar 2021 20:01:31 -0600 Subject: lint for non-POSIXful includes --- yapymake/makefile/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yapymake/makefile/__init__.py') 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. -- cgit v1.2.3