File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / confuse / doc / Makefile.am
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:49:17 2021 UTC (3 years, 3 months ago) by misho
Branches: confuse, MAIN
CVS tags: v3_3, HEAD
confuse 3.3

    1: EXTRA_DIST        = doxygen-footer.html doxygen-header.html doxygen.css tutorial.xml \
    2: 		    $(TUTORIAL_CSOURCES) css.xsl tutorial.css Doxyfile.in Doxyfile
    3: 
    4: # How can we conditionalize building these programs so they are only
    5: # built when calling 'make documentation'?
    6: # noinst_PROGRAMS = listing1 listing2 listing3 listing4 listing5 listing8
    7: LDADD             = ../src/libconfuse.la
    8: AM_CPPFLAGS       = -I$(top_srcdir)/src
    9: AM_LDFLAGS        = -L../src/
   10: LIBS              = $(LTLIBINTL)
   11: TUTORIAL_CSOURCES = listing1.c listing2.c listing3.c listing4.c \
   12: 		    listing5.c listing6.c listing7.c listing8.c
   13: TUTORIAL_LISTINGS = $(TUTORIAL_CSOURCES:.c=.xml)
   14: MOSTLYCLEANFILES  = tutorial.pdf
   15: DISTCLEANFILES    =
   16: CLEANFILES        =*~ '\#*\#' $(TUTORIAL_LISTINGS)
   17: 
   18: .c.xml:
   19: 	@echo "<programlisting id=\"$*\"><![CDATA[" > $@
   20: 	@sed = $< | sed 'N;s/\n/\t/' >> $@
   21: 	@echo ']]></programlisting>' >> $@
   22: 
   23: tutorial-html/index.html: tutorial.xml $(TUTORIAL_LISTINGS) css.xsl tutorial.css
   24: 	@xmllint --valid --noout --path . $< && xmlto -v --searchpath . -o tutorial-html \
   25: 		--extensions -m $(top_srcdir)/doc/css.xsl xhtml $<
   26: 	@cp -f $(top_srcdir)/doc/tutorial.css tutorial-html/
   27: 
   28: tutorial.pdf: tutorial.xml $(TUTORIAL_LISTINGS)
   29: 	@xmllint --valid --noout --path . $< && xmlto pdf $<
   30: 
   31: tutorial: tutorial-html
   32: tutorial-html: tutorial-html/index.html
   33: tutorial-pdf: tutorial.pdf
   34: 
   35: html/index.html: Doxyfile
   36: 	@doxygen
   37: 
   38: # Remove "Directory Reference", not needed
   39: doxygen-manual: html/index.html ../src/confuse.h
   40: 	@find man -name '_home_*' -exec rm {} \;
   41: 
   42: documentation: tutorial doxygen-manual
   43: 
   44: dist-hook: tutorial doxygen-manual
   45: 	@cp -pr html $(distdir)
   46: 	@cp -pr man $(distdir)
   47: 	@cp -pr tutorial-html $(distdir)
   48: 
   49: # remove directories created by DoxyGen and xmlto to pass distcheck
   50: distclean-local:
   51: 	@rm -rfv html man tutorial-html

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>