diff options
Diffstat (limited to 'docs/reference/ytstenut/Makefile.am')
-rw-r--r-- | docs/reference/ytstenut/Makefile.am | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/reference/ytstenut/Makefile.am b/docs/reference/ytstenut/Makefile.am index e97e726..b9b4c8f 100644 --- a/docs/reference/ytstenut/Makefile.am +++ b/docs/reference/ytstenut/Makefile.am @@ -52,7 +52,6 @@ EXTRA_HFILES= # Header files to ignore when scanning. Use base file name, no paths # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h IGNORE_HFILES = \ - empathy-tp-file.h \ ytstenut-internal.h \ yts-adapter-factory.h \ yts-client-internal.h \ @@ -134,4 +133,22 @@ if BUILD_GTK_DOC #TESTS = $(GTKDOC_CHECK) endif +# This is a hack to prevent the ignores list from containing stale entries. +# Check if any of them are no more existant, and if so, bail out. +if ENABLE_GTK_DOC +HTML_BUILD_STAMP += check-ignores.stamp +CLEANFILES += check-ignores.stamp +endif + +check-ignores.stamp: + $(AM_V_GEN) b=`tput bold` && \ + n=`tput sgr0` && \ + for f in $(IGNORE_HFILES); do \ + if [ "`find $(DOC_SOURCE_DIR) -name $${f}`" = "" ]; then \ + echo "$${b}Error: $${f} is ignored but not found anyway.$${n}"; \ + exit 1; \ + fi \ + done + @touch $@ + -include $(top_srcdir)/git.mk |