aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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