5 EXTRA_DIST = gdoc TODO libtasn1.html libtasn1.ps libtasn1.pdf
7 info_TEXINFOS = libtasn1.texi
8 libtasn1_TEXINFOS = fdl.texi $(gdoc_TEXINFOS)
10 AM_MAKEINFOFLAGS = -I $(top_builddir)/doc
11 AM_MAKEINFOHTMLFLAGS = --no-split
13 dist_man_MANS = $(gdoc_MANS)
15 gdoc_MANS = man/asn1_get_length_der.3 man/asn1_get_tag_der.3 man/asn1_get_octet_der.3 man/asn1_get_bit_der.3 man/asn1_der_decoding.3 man/asn1_der_decoding_element.3 man/asn1_der_decoding_startEnd.3 man/asn1_expand_any_defined_by.3 man/asn1_expand_octet_string.3 man/libtasn1_perror.3 man/libtasn1_strerror.3 man/asn1_check_version.3 man/asn1_length_der.3 man/asn1_octet_der.3 man/asn1_bit_der.3 man/asn1_der_coding.3 man/asn1_write_value.3 man/asn1_read_value.3 man/asn1_read_tag.3 man/asn1_array2tree.3 man/asn1_delete_structure.3 man/asn1_delete_element.3 man/asn1_create_element.3 man/asn1_print_structure.3 man/asn1_number_of_elements.3 man/asn1_find_structure_from_oid.3 man/asn1_parser2tree.3 man/asn1_parser2array.3
16 gdoc_TEXINFOS = texi/decoding.c.texi texi/errors.c.texi texi/parser_aux.c.texi texi/coding.c.texi texi/element.c.texi texi/gstr.c.texi texi/structure.c.texi texi/ASN1.c.texi texi/asn1_get_length_der.texi texi/asn1_get_tag_der.texi texi/asn1_get_octet_der.texi texi/asn1_get_bit_der.texi texi/asn1_der_decoding.texi texi/asn1_der_decoding_element.texi texi/asn1_der_decoding_startEnd.texi texi/asn1_expand_any_defined_by.texi texi/asn1_expand_octet_string.texi texi/libtasn1_perror.texi texi/libtasn1_strerror.texi texi/asn1_check_version.texi texi/asn1_length_der.texi texi/asn1_octet_der.texi texi/asn1_bit_der.texi texi/asn1_der_coding.texi texi/asn1_write_value.texi texi/asn1_read_value.texi texi/asn1_read_tag.texi texi/asn1_array2tree.texi texi/asn1_delete_structure.texi texi/asn1_delete_element.texi texi/asn1_create_element.texi texi/asn1_print_structure.texi texi/asn1_number_of_elements.texi texi/asn1_find_structure_from_oid.texi texi/asn1_parser2tree.texi texi/asn1_parser2array.texi
18 $(gdoc_MANS) $(gdoc_TEXINFOS):
23 GDOC_SRC = $(top_srcdir)/lib/decoding.c $(top_srcdir)/lib/errors.c \
24 $(top_srcdir)/lib/parser_aux.c $(top_srcdir)/lib/coding.c \
25 $(top_srcdir)/lib/element.c $(top_srcdir)/lib/gstr.c \
26 $(top_srcdir)/lib/structure.c $(top_builddir)/lib/ASN1.c
31 for i in $(GDOC_SRC); do \
32 BASE=`basename $$i`; \
33 TEXINFOS="$$TEXINFOS texi/$$BASE.texi"; \
35 FUNCS=`$(srcdir)/gdoc -listfunc $(GDOC_SRC)`; \
36 for i in $$FUNCS; do \
37 MANS="$$MANS man/$$i.3"; \
38 TEXINFOS="$$TEXINFOS texi/$$i.texi"; \
40 perl -pi -e "s,^gdoc_MANS =.*,gdoc_MANS =$$MANS,;" \
41 -e "s,^gdoc_TEXINFOS =.*,gdoc_TEXINFOS =$$TEXINFOS,;" \
45 $(mkdir_p) man texi; \
46 for i in `$(srcdir)/gdoc -listfunc $(GDOC_SRC)`; do \
47 echo -n "Creating documentation for $$i... " && \
49 -module $(PACKAGE) -sourceversion $(VERSION) \
51 -seeinfo $(PACKAGE) -verbatimcopying \
52 -copyright "2001, 2002, 2003 Fabio Fiorina" \
54 $(GDOC_SRC) > man/$$i.3 && \
55 $(srcdir)/gdoc -texinfo -function $$i \
56 $(GDOC_SRC) > texi/$$i.texi && \
59 for i in $(GDOC_SRC); do \
60 BASE=`basename $$i`; \
61 echo -n "Creating documentation for $$i... " && \
62 $(srcdir)/gdoc -texinfo $$i > texi/$$BASE.texi && \
66 .PHONY: update-makefile doit