]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
make: don't spray static check failures all over the subdir build
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 9 Nov 2018 19:43:17 +0000 (13:43 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 9 Nov 2018 19:43:17 +0000 (13:43 -0600)
Debian package building is special -- it directly calls make -C libxfs
when building the debian-installer packages.  This means that any
variables we define in the top level Makefile don't get passed down to
subdir make processes.

This means that the new static checker support effectively runs the
first argument in $(CFLAGS) as a command, which is surprising.  Fix up
buildrules to patch out CHECK_CMD if nobody's defined it, so that direct
subdir make works again.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/buildrules

index c207a16805fc2c2d5fdf85487747f445c9ae4f48..7a139ff07de8e1e75bf8b3b789f4590701a116c0 100644 (file)
@@ -36,6 +36,10 @@ $(SUBDIRS):
        $(Q)$(MAKE) $(MAKEOPTS) -q -C $@ || $(MAKE) $(MAKEOPTS) -C $@
 endif
 
+ifndef CHECK_CMD
+CHECK_CMD = @true
+endif
+
 #
 # Standard targets
 #