aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-05 05:04:30 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-05 19:29:05 +0800
commit3d1f8a776ca187ee211cdd2361b0aab79def6834 (patch)
tree81c47fcf61a170211d3ee946c2971b817f4bde8d
parent26ee37e8b33a4df369558a7ba150839455663680 (diff)
downloadgsoc2013-empathy-3d1f8a776ca187ee211cdd2361b0aab79def6834.tar
gsoc2013-empathy-3d1f8a776ca187ee211cdd2361b0aab79def6834.tar.gz
gsoc2013-empathy-3d1f8a776ca187ee211cdd2361b0aab79def6834.tar.bz2
gsoc2013-empathy-3d1f8a776ca187ee211cdd2361b0aab79def6834.tar.lz
gsoc2013-empathy-3d1f8a776ca187ee211cdd2361b0aab79def6834.tar.xz
gsoc2013-empathy-3d1f8a776ca187ee211cdd2361b0aab79def6834.tar.zst
gsoc2013-empathy-3d1f8a776ca187ee211cdd2361b0aab79def6834.zip
Add simple flymake support.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--libempathy-gtk/Makefile.am1
-rw-r--r--libempathy/Makefile.am1
-rw-r--r--src/Makefile.am1
-rw-r--r--tools/Makefile.am1
-rw-r--r--tools/flymake.mk4
5 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am
index 4fd0fa562..80c9a792d 100644
--- a/libempathy-gtk/Makefile.am
+++ b/libempathy-gtk/Makefile.am
@@ -1,4 +1,5 @@
include $(top_srcdir)/tools/shave.mk
+include $(top_srcdir)/tools/flymake.mk
AM_CPPFLAGS = \
-I. \
diff --git a/libempathy/Makefile.am b/libempathy/Makefile.am
index c9f2c4206..3540c88bf 100644
--- a/libempathy/Makefile.am
+++ b/libempathy/Makefile.am
@@ -1,4 +1,5 @@
include $(top_srcdir)/tools/shave.mk
+include $(top_srcdir)/tools/flymake.mk
AM_CPPFLAGS = \
-I. \
diff --git a/src/Makefile.am b/src/Makefile.am
index 081b6f4f2..db2117986 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,5 @@
include $(top_srcdir)/tools/shave.mk
+include $(top_srcdir)/tools/flymake.mk
AM_CPPFLAGS = \
-I$(top_srcdir) \
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 05da7439b..8662b44ae 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -15,6 +15,7 @@ EXTRA_DIST = \
check-misc.sh \
check-whitespace.sh \
doc-generator.xsl \
+ flymake.mk \
glib-client-gen.py \
glib-client-marshaller-gen.py \
glib-errors-enum-body-gen.py \
diff --git a/tools/flymake.mk b/tools/flymake.mk
new file mode 100644
index 000000000..020a7bfbf
--- /dev/null
+++ b/tools/flymake.mk
@@ -0,0 +1,4 @@
+check-syntax:
+ $(CC) $(AM_CPPFLAGS) $(AM_CFLAGS) -fsyntax-only $(CHK_SOURCES)
+
+.PHONY: check-syntax