diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-10-02 20:31:39 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-10-02 20:31:39 +0200 |
commit | 3cc4ba2845a42dddd444795d36056aaf270f2980 (patch) | |
tree | d14515749eb166ea6e0f81dfee12cf004af186ae | |
parent | ebaccbc79f699e064e3474b9f4a2965eb4620ecc (diff) | |
download | gnutls-3cc4ba2845a42dddd444795d36056aaf270f2980.tar.gz |
changed generation of manpages.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | doc/manpages/Makefile.am | 15 |
2 files changed, 12 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore index b1a48d0a6e..36c5151f78 100644 --- a/.gitignore +++ b/.gitignore @@ -593,3 +593,4 @@ tests/chainverify-unsorted tests/mini-dtls-heartbeat tests/mini-handshake-timeout tests/mini-x509-callbacks +doc/manpages/stamp_mans diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am index 7a9979dc40..fdf3587986 100644 --- a/doc/manpages/Makefile.am +++ b/doc/manpages/Makefile.am @@ -26,6 +26,13 @@ if ENABLE_SRP dist_man_MANS += srptool.1 endif +HEADER_FILES = $(top_srcdir)/lib/includes/gnutls/gnutls.h.in \ + $(top_srcdir)/lib/includes/gnutls/x509.h $(top_srcdir)/lib/includes/gnutls/openpgp.h \ + $(top_srcdir)/lib/includes/gnutls/pkcs12.h $(top_srcdir)/lib/includes/gnutls/pkcs11.h \ + $(top_srcdir)/lib/includes/gnutls/abstract.h $(top_srcdir)/lib/includes/gnutls/compat.h \ + $(top_srcdir)/lib/includes/gnutls/dtls.h $(top_srcdir)/lib/includes/gnutls/crypto.h \ + $(top_srcdir)/lib/includes/gnutls/ocsp.h $(top_srcdir)/lib/includes/gnutls/tpm.h + # Note that our .def files depend on autogen # supporting the @subheading texi keyword. This # is not currently the case so we do remove it @@ -844,8 +851,7 @@ APIMANS += gnutls_x509_trust_list_verify_named_crt.3 dist_man_MANS += $(APIMANS) -$(APIMANS): - make doit +$(APIMANS): stamp_mans compare-makefile: FUNCS=`cat $(top_srcdir)/lib/includes/gnutls/*.h | $(top_srcdir)/doc/scripts/getfuncs.pl|sort`; \ @@ -857,7 +863,7 @@ compare-makefile: perl -p -e "s/^APIMANS =/APIMANS =$$MANS/" > tmp-$@; \ diff -u $(srcdir)/Makefile.am tmp-$@ -doit: +stamp_mans: $(HEADER_FILES) @echo -n "Creating man pages for gnutls.h..." && \ for i in `$(top_srcdir)/doc/scripts/getfuncs.pl <$(top_srcdir)/lib/includes/gnutls/gnutls.h.in`; do \ $(top_srcdir)/doc/scripts/gdoc -man \ @@ -1012,5 +1018,6 @@ doit: echo -n "."; \ done @echo "" + echo $@ > $@ -.PHONY: update-makefile doit +.PHONY: update-makefile |