Annotation of embedaddon/confuse/doc/Makefile.am, revision 1.1.1.2
1.1.1.2 ! misho 1: EXTRA_DIST = doxygen-footer.html doxygen-header.html doxygen.css tutorial.xml \
! 2: $(TUTORIAL_CSOURCES) css.xsl tutorial.css Doxyfile.in Doxyfile
1.1 misho 3:
1.1.1.2 ! misho 4: # How can we conditionalize building these programs so they are only
! 5: # built when calling 'make documentation'?
1.1 misho 6: # noinst_PROGRAMS = listing1 listing2 listing3 listing4 listing5 listing8
1.1.1.2 ! misho 7: LDADD = ../src/libconfuse.la
! 8: AM_CPPFLAGS = -I$(top_srcdir)/src
! 9: AM_LDFLAGS = -L../src/
! 10: LIBS = $(LTLIBINTL)
1.1 misho 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)
1.1.1.2 ! misho 14: MOSTLYCLEANFILES = tutorial.pdf
! 15: DISTCLEANFILES =
! 16: CLEANFILES =*~ '\#*\#' $(TUTORIAL_LISTINGS)
1.1 misho 17:
18: .c.xml:
1.1.1.2 ! misho 19: @echo "<programlisting id=\"$*\"><![CDATA[" > $@
! 20: @sed = $< | sed 'N;s/\n/\t/' >> $@
! 21: @echo ']]></programlisting>' >> $@
1.1 misho 22:
23: tutorial-html/index.html: tutorial.xml $(TUTORIAL_LISTINGS) css.xsl tutorial.css
1.1.1.2 ! misho 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/
1.1 misho 27:
28: tutorial.pdf: tutorial.xml $(TUTORIAL_LISTINGS)
1.1.1.2 ! misho 29: @xmllint --valid --noout --path . $< && xmlto pdf $<
1.1 misho 30:
31: tutorial: tutorial-html
32: tutorial-html: tutorial-html/index.html
33: tutorial-pdf: tutorial.pdf
34:
35: html/index.html: Doxyfile
1.1.1.2 ! misho 36: @doxygen
! 37:
! 38: # Remove "Directory Reference", not needed
1.1 misho 39: doxygen-manual: html/index.html ../src/confuse.h
1.1.1.2 ! misho 40: @find man -name '_home_*' -exec rm {} \;
1.1 misho 41:
42: documentation: tutorial doxygen-manual
43:
44: dist-hook: tutorial doxygen-manual
1.1.1.2 ! misho 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>