Avoid forgetting about adding svgs/dotfiles to the Makefile.am

Signed-off-by: Peter Hutterer <[email protected]>
---
 doc/Makefile.am | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 9a0bca1..8266e3b 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -85,6 +85,16 @@ EXTRA_DIST += $(diagram_files) \
              $(header_files) \
              $(style_files)
 
+local_svg = $(shell find $(srcdir)/svg -type f -printf "$(srcdir)/svg/%P\n" 
2>/dev/null)
+local_dotfiles = $(shell find $(srcdir)/dot -type f -printf 
"$(srcdir)/dot/%P\n" 2>/dev/null)
+
+check:
+       @files=`echo $(local_svg) $(local_dotfiles) $(diagram_files) | tr ' ' 
'\n' | sort | uniq -u` && \
+               test -z "$$files" || (\
+               echo "SVG/dotfiles files present but missing from the 
Makefile.am:" && \
+               echo "$$files" && \
+               test)
+
 # make sure doc was built before running dist
 dist-hook:
        @test -f $(distdir)/html/index.html || (\
-- 
2.7.4

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to