Makefile cleaned muchly - make should now cause gstreamer-libs docs to be created. Make dist may work too - untested...

Original commit message from CVS:
Makefile cleaned muchly - make should now cause gstreamer-libs docs to be
created.  Make dist may work too - untested.  No longer store tmpls in
CVS, either.
Only thing missing is make dependencies on the source files used to extract
the docs.
This commit is contained in:
Richard Boulton 2000-12-30 13:54:43 +00:00
parent f4c8ddb28e
commit 8b4b05dc1e
2 changed files with 20 additions and 39 deletions

View file

@ -13,51 +13,33 @@ HTML_DIR=$(datadir)/gstreamer/html
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
tmpl_sources = \
tmpl/videoraw.sgml
gstreamer_docdir = $(HTML_DIR)
gstreamer_doc_DATA = \
$(DOC_MODULE).html \
$(DOC_MODULE)-decl.txt \
$(DOC_MODULE)-sections.txt
if HAVE_GTK_DOC if HAVE_GTK_DOC
gstreamer.html: html/book1.html html: html/book1.html
-cd $(srcdir) && cp html/book1.html gstreamer.html
else else
gstreamer.html: html:
endif endif
html/book1.html: sgml/gstreamer-doc.bottom # rule to make the html
$(MAKE) html html/book1.html: sgml/$(DOC_MODULE)-doc.bottom $(DOC_MAIN_SGML_FILE)
sgml/gstreamer-doc.bottom: $(tmpl_sources)
$(MAKE) sgml
gstreamer-decl.txt:
$(MAKE) scan
scan:
gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers=""
tmpl: scan
gtkdoc-mktmpl --module=$(DOC_MODULE)
sgml: tmpl
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
html:
if ! test -d html ; then mkdir html ; fi if ! test -d html ; then mkdir html ; fi
-cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
# rule to cause scanning to be done
$(DOC_MODULE)-decl.txt:
gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers=""
# rule to cause tmpls to be made
tmpl/$(DOC_MODULE)-unused.sgml: $(DOC_MODULE)-decl.txt $(DOC_MODULE)-sections.txt
gtkdoc-mktmpl --module=$(DOC_MODULE)
# rule to make sgml
sgml/$(DOC_MODULE)-doc.bottom: tmpl/$(DOC_MODULE)-unused.sgml
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
clean-local: clean-local:
rm -f *~ *.bak *.signals *-unused.txt *.args $(RM) -rf *~ *.bak *.signals *-unused.txt *.args tmpl html sgml tmpl/*.bak $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
maintainer-clean-local: clean install-data-local: html
rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
(installfiles=`echo $(srcdir)/html/*.html`; \ (installfiles=`echo $(srcdir)/html/*.html`; \
if test "$$installfiles" = '$(srcdir)/html/*.html'; \ if test "$$installfiles" = '$(srcdir)/html/*.html'; \
@ -73,7 +55,7 @@ install-data-local:
gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \ gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \
fi) fi)
dist-hook: dist-hook: html
mkdir $(distdir)/html mkdir $(distdir)/html
mkdir $(distdir)/sgml mkdir $(distdir)/sgml
mkdir $(distdir)/tmpl mkdir $(distdir)/tmpl
@ -82,4 +64,4 @@ dist-hook:
-cp $(srcdir)/sgml/*.sgml $(distdir)/sgml -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml -cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
.PHONY : html sgml templates scan .PHONY : html

View file

@ -1 +0,0 @@
*.bak