diff options
author | P. F. Chimento <philip.chimento@gmail.com> | 2013-05-06 16:19:50 +0200 |
---|---|---|
committer | P. F. Chimento <philip.chimento@gmail.com> | 2013-05-06 16:19:50 +0200 |
commit | 7c5f7963dae6a6e9f9b1dec70b235fc78d465d77 (patch) | |
tree | 86648ede30c6f7662d6f2602967c384b0cfca5f4 /Makefile.am | |
parent | 9405254d99d849d4ca9856e032244d1de22071f6 (diff) |
Build Javascript API documentation
g-ir-doc-tool is buggy, and doesn't build very good documentation,
but it is better than nothing. Building the JS documentation is
turned off by default and turned on for 'make distcheck'.
[endlessm/eos-sdk#18]
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index b9c1b1f..a9f56f2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,9 +21,9 @@ EXTRA_DIST = @EOS_SDK_API_NAME@.pc.in DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ AM_CFLAGS = @STRICT_CFLAGS@ -# Make sure to run Gtk-doc tests and build the introspection files when doing +# Make sure to run Gtk-doc tests and build the documentation when doing # 'make distcheck' -DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection +DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-gir-doc # Generated files that 'make clean' should erase CLEANFILES = @@ -80,6 +80,32 @@ typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) CLEANFILES += $(gir_DATA) $(typelib_DATA) endif +# # # GOBJECT INTROSPECTION DOCUMENTATION # # # + +if ENABLE_GIR_DOC + +docs/reference/endless-js/index.page: $(INTROSPECTION_GIRS) + $(MKDIR_P) $(@D) + g-ir-doc-tool -o $(@D) -l gjs $< + +docs/reference/endless-js/html/index.html: docs/reference/endless-js/index.page + $(MKDIR_P) $(@D) + yelp-build html -o $(@D) $(<D) + +all-local: docs/reference/endless-js/html/index.html + +EXTRA_DIST += \ + docs/reference/endless-js/html/*.html \ + docs/reference/endless-js/html/*.css \ + docs/reference/endless-js/html/*.js + +CLEANFILES += \ + docs/reference/endless-js/*.page \ + docs/reference/endless-js/html/*.html \ + docs/reference/endless-js/html/*.css \ + docs/reference/endless-js/html/*.js +endif + # # # TESTS # # # include $(top_srcdir)/test/Makefile.am |