diff options
author | NIIBE Yutaka <[email protected]> | 2017-11-20 02:33:26 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-11-20 02:33:26 +0000 |
commit | e1984969cac06a88c7e6f5e49e5c3104d10a847d (patch) | |
tree | 6c819e7985a36b1f72d3891a9ace9ea385c6f324 /doc | |
parent | dirmngr: Fix double free of a hash context in the error case. (diff) | |
download | gnupg-e1984969cac06a88c7e6f5e49e5c3104d10a847d.tar.gz gnupg-e1984969cac06a88c7e6f5e49e5c3104d10a847d.zip |
build: BSD make support for yat2m.
* configure.ac (YAT2M): Only define when found.
* doc/Makefile.am: Portability fix.
--
This is not intended to apply to master, but 2.2 branch only. When
new libgpg-error is required, installation of yat2m can be assumed.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 097a56061..aba84ba3c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -112,8 +112,16 @@ DISTCLEANFILES = gnupg.tmp gnupg.ops yat2m-stamp.tmp yat2m-stamp \ gnupg-module-overview.eps \ $(myman_pages) gnupg.7 +if HAVE_YAT2M +YAT2M_CMD = $(YAT2M) +YAT2M_DEP = $(YAT2M) +else +YAT2M_CMD = ./yat2m +YAT2M_DEP = yat2m + yat2m: yat2m.c $(CC_FOR_BUILD) -o $@ $(srcdir)/yat2m.c +endif mkdefsinc: mkdefsinc.c Makefile ../config.h $(CC_FOR_BUILD) -I. -I.. -I$(srcdir) $(AM_CPPFLAGS) \ @@ -146,12 +154,12 @@ yat2m-stamp: $(myman_sources) defs.inc @touch yat2m-stamp.tmp incd="`test -f defsincdate || echo '$(srcdir)/'`defsincdate"; \ for file in $(myman_sources) ; do \ - $(YAT2M) $(YAT2M_OPTIONS) --store \ + $(YAT2M_CMD) $(YAT2M_OPTIONS) --store \ --date "`cat $$incd 2>/dev/null`" \ `test -f '$$file' || echo '$(srcdir)/'`$$file ; done @mv -f yat2m-stamp.tmp $@ -yat2m-stamp: $(YAT2M) +yat2m-stamp: $(YAT2M_DEP) $(myman_pages) gnupg.7 : yat2m-stamp defs.inc @if test -f $@; then :; else \ |