summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2020-04-20 14:22:14 -0500
committerFrediano Ziglio <freddy77@gmail.com>2020-04-21 15:57:20 +0100
commit8aea0b4e7436f82fb8c4d6f6d6952bf3c23d48a0 (patch)
treea3cf34d338f27580c12e49808779157258c38c4c /src
parentc5cfc19f040fce6ef6ebe2dddb2cd05614c2532f (diff)
Add make style targets.
These use a refined version of the doc/spice_indent tool to make sure that all controlled sources follow the spice style guide. Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am3
-rw-r--r--src/tests/Makefile.am3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index a079d55..0853bae 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -48,3 +48,6 @@ EXTRA_DIST = \
if HAVE_GTEST
SUBDIRS = tests
endif
+
+style: $(x11spice_SOURCES)
+ $(top_srcdir)/doc/spice_indent --dont-break-procedure-type $^
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index 8b0bb75..e340c72 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -39,3 +39,6 @@ callgrind.out.x:
clean-local:
rm -f callgrind.out.*
+
+style: $(x11spice_test_SOURCES)
+ $(top_srcdir)/doc/spice_indent --dont-break-procedure-type $^