vars.am: Experimental hack for Emacs `flymake'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 14 Aug 2017 12:38:06 +0000 (13:38 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 14 Aug 2017 12:38:06 +0000 (13:38 +0100)
I'm not sure whether this will stay here, but it seems harmless enough.

vars.am

diff --git a/vars.am b/vars.am
index be1847f..b99cfcf 100644 (file)
--- a/vars.am
+++ b/vars.am
@@ -130,4 +130,12 @@ SUFFIXES           += .c .t$(EXEEXT) .to
 .PRECIOUS: %.to %.t$(EXEEXT)
 CLEANFILES             += *.to *.t$(EXEEXT)
 
+###--------------------------------------------------------------------------
+### Experimental flymake hack.
+
+check-syntax:
+       $(COMPILE) -S -o/dev/null \
+               -DTEST_RIG -DSRCDIR=\"$(SRCDIR)\" \
+               $(CHK_SOURCES)
+
 ###----- That's all, folks --------------------------------------------------