diff options
author | Sébastien Noel <[email protected]> | 2024-09-10 14:43:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-09-10 14:58:29 +0000 |
commit | 8e7f443045f8e77bb5c841c2b7bfe2e1e3fcceb9 (patch) | |
tree | e939f639d3eb748045fdba41949b20755a72482b /doc/Makefile.am | |
parent | doc: Update the texinfo version also on gpgme.texi changes. (diff) | |
download | gpgme-8e7f443045f8e77bb5c841c2b7bfe2e1e3fcceb9.tar.gz gpgme-8e7f443045f8e77bb5c841c2b7bfe2e1e3fcceb9.zip |
doc: Provide a man page for gpgme-json.
* doc/gpgme-json.texi: New.
* configure.ac: Check for yat2m.
* doc/Makefile.am (YAT2M_OPTIONS): New. Also add all the other man
page stuff similar to what is used in gnupg.
--
ChangeLog entries by wk.
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r-- | doc/Makefile.am | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 7b629bc3..cee802d5 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -19,7 +19,7 @@ ## Process this file with automake to produce Makefile.in -DISTCLEANFILES = gpgme.tmp +DISTCLEANFILES = gpgme.tmp yat2m-stamp.tmp yat2m-stamp $(myman_pages) CLEANFILES = mkdefsinc defs.inc EXTRA_DIST = module-overview.sk HACKING DCO ChangeLog-2011 \ @@ -28,9 +28,15 @@ EXTRA_DIST = module-overview.sk HACKING DCO ChangeLog-2011 \ BUILT_SOURCES = defsincdate defs.inc +YAT2M_OPTIONS = -I $(srcdir) --release "GPGME @PACKAGE_VERSION@" + +myman_sources = gpgme-json.texi +myman_pages = gpgme-json.1 + +man_MANS = $(myman_pages) info_TEXINFOS = gpgme.texi -gpgme_TEXINFOS = uiserver.texi lesser.texi gpl.texi +gpgme_TEXINFOS = uiserver.texi lesser.texi gpl.texi gpgme-json.texi gpgme.texi : defs.inc @@ -38,6 +44,29 @@ mkdefsinc: mkdefsinc.c Makefile $(top_builddir)/conf/config.h $(CC_FOR_BUILD) -I. -I$(top_builddir)/conf -I$(srcdir) \ $(AM_CPPFLAGS) -o $@ $(srcdir)/mkdefsinc.c +yat2m-stamp: $(myman_sources) defs.inc + @rm -f yat2m-stamp.tmp + @touch yat2m-stamp.tmp + incd="`test -f defsincdate || echo '$(srcdir)/'`defsincdate"; \ + for file in $(myman_sources) ; do \ + $(YAT2M) $(YAT2M_OPTIONS) --store \ + --date "`cat $$incd 2>/dev/null`" \ + `test -f '$$file' || echo '$(srcdir)/'`$$file ; done + @mv -f yat2m-stamp.tmp $@ + +$(myman_pages) : yat2m-stamp defs.inc + @if test -f $@; then :; else \ + trap 'rm -rf yat2m-stamp yat2m-lock' 1 2 13 15; \ + if mkdir yat2m-lock 2>/dev/null; then \ + rm -f yat2m-stamp; \ + $(MAKE) $(AM_MAKEFLAGS) yat2m-stamp; \ + rmdir yat2m-lock; \ + else \ + while test -d yat2m-lock; do sleep 1; done; \ + test -f yat2m-stamp; exit $$?; \ + fi; \ + fi + dist-hook: defsincdate defsincdate: $(gpgme_TEXINFOS) $(info_TEXINFOS) |