]> git.eshelyaron.com Git - emacs.git/commitdiff
Minimally support Flymake in Emacs C sources
authorJoão Távora <joaotavora@gmail.com>
Fri, 1 Jun 2018 23:12:30 +0000 (00:12 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 2 Jun 2018 00:47:19 +0000 (01:47 +0100)
The check-syntax target is enabled the use of Flymake's "legacy"
backend, flymake-proc-legacy-flymake in src/*.c.  It works quite well
with C sources.  The green light for this change had already been
given some time ago in

https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00385.html

* src/Makefile.in (check-syntax): New target.
(.PHONY): Add check-syntax.

src/Makefile.in

index 1d23425969c053e2f3b0eb161e671b293580b811..a1ec0bd7f7b6116303041e09d92c81250ab1113f 100644 (file)
@@ -754,3 +754,8 @@ else
 endif
        @: Compile some files earlier to speed up further compilation.
        $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)"
+
+### Flymake support (for C only)
+check-syntax:
+       $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) ${CHK_SOURCES} || true
+.PHONY: check-syntax