]> git.0d.be Git - empathy.git/blobdiff - tools/check-coding-style.mk
Import tools from telepathy-glib 0.7.3 and build a static libemp-extensions.la.
[empathy.git] / tools / check-coding-style.mk
diff --git a/tools/check-coding-style.mk b/tools/check-coding-style.mk
new file mode 100644 (file)
index 0000000..1499f2f
--- /dev/null
@@ -0,0 +1,17 @@
+check-local::
+       @fail=0; \
+       if test -n "$(check_misc_sources)"; then \
+               tools_dir=$(top_srcdir)/tools \
+               sh $(top_srcdir)/tools/check-misc.sh \
+                       $(check_misc_sources) || fail=1; \
+       fi; \
+       if test -n "$(check_c_sources)"; then \
+               tools_dir=$(top_srcdir)/tools \
+               sh $(top_srcdir)/tools/check-c-style.sh \
+                       $(check_c_sources) || fail=1; \
+       fi;\
+       if test yes = "$(ENABLE_CODING_STYLE_CHECKS)"; then \
+               exit "$$fail";\
+       else \
+               exit 0;\
+       fi