summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile.am21
-rw-r--r--docs/pango.types30
2 files changed, 14 insertions, 37 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index adbbb4f7..2d070bf7 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -98,11 +98,19 @@ include $(top_srcdir)/gtk-doc.make
# This line really belongs in gtk-doc.mk
$(REPORT_FILES): sgml-build.stamp
+pango.types:
+ @echo "Rebuilding $@"
+ @LANG=C; LIST=$$(grep 'pango_[_a-zA-Z0-9]*_get_type' $(HFILE_GLOB) | grep -v '\(private\|atsui\|win32\)' | sed 's/\([^:]*:\).*\(pango[_a-zA-Z0-9]*_get_type\).*/\1\2/') && \
+ echo "$$LIST" | sed 's/.*\/\(pango\/.*\):.*/#include <\1>/' | sort -u > $@.tmp && \
+ echo >> $@.tmp && \
+ echo "$$LIST" | cut -d : -f 2 | sort -u >> $@.tmp && \
+ mv $@.tmp $@
+
+BUILT_SOURCES = pango.types
+
########################################################################
man_MANS = pango-querymodules.1
-BUILT_EXTRA_DIST = $(man_MANS)
-MAINTAINERCLEANFILES = $(man_MANS)
if ENABLE_MAN
.xml.1:
@XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
@@ -117,18 +125,17 @@ dist-local-check-mans-enabled:
@false
endif
+MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
EXTRA_DIST += \
layout.fig \
layout.eps \
version.xml.in \
- check.docs
+ check.docs \
+ pango.types \
+ $(man_MANS)
# force doc rebulid after configure
dist-hook-local: dist-local-check-mans-enabled dist-local-check-no-cross-references maintainer-clean-local all-local
- files='$(BUILT_EXTRA_DIST)'; \
- for f in $$files; do \
- if test -f $$f; then d=.; else d=$(srcdir); fi; \
- cp $$d/$$f $(distdir) || exit 1; done;
#
# Require gtk-doc when making dist
diff --git a/docs/pango.types b/docs/pango.types
deleted file mode 100644
index 96361269..00000000
--- a/docs/pango.types
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <pango/pango.h>
-#include <pango/pangocairo.h>
-#include <pango/pangofc-font.h>
-#include <pango/pangofc-fontmap.h>
-#include <pango/pangoft2.h>
-#include <pango/pangoxft.h>
-#include <pango/pango-ot.h>
-
-pango_engine_get_type
-pango_engine_lang_get_type
-pango_engine_shape_get_type
-pango_font_get_type
-pango_font_family_get_type
-pango_font_face_get_type
-pango_font_map_get_type
-pango_fontset_get_type
-pango_fontset_simple_get_type
-pango_context_get_type
-pango_layout_get_type
-pango_renderer_get_type
-pango_fc_font_get_type
-pango_fc_font_map_get_type
-pango_fc_decoder_get_type
-pango_ft2_font_map_get_type
-pango_xft_font_get_type
-pango_xft_font_map_get_type
-pango_xft_renderer_get_type
-pango_cairo_font_map_get_type
-pango_ot_info_get_type
-pango_ot_ruleset_get_type