Thanks Harlan, I'm checking this in.
Akim
Index: ChangeLog
from Akim Demaille <[EMAIL PROTECTED]>
* man/Makefile.am (.x.1): Fix to work properly with
builddir != srcdir.
Index: man/Makefile.am
===================================================================
RCS file: /cvs/autoconf/man/Makefile.am,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile.am
--- man/Makefile.am 2000/12/06 16:02:59 1.2
+++ man/Makefile.am 2000/12/15 08:24:22
@@ -24,13 +24,14 @@
SUFFIXES = .x .1
.x.1:
- @if test -f $(top_builddir)/$*; then \
+ test -f $(top_builddir)/$* && prog=$(top_builddir)/$*; \
+ test -f $(top_srcdir)/$* && prog=$(top_srcdir)/$*; \
+ if test -n "$$prog"; then \
echo "Updating man page $@"; \
$(HELP2MAN) \
--include=$(srcdir)/$*.x \
--include=$(srcdir)/common.x \
- --output=$@ \
- $(top_builddir)/$*; \
+ --output=$@ $$prog; \
else \
echo "WARNING: The man page $@ cannot be updated yet."; \
echo " Retry once the corresponding executable is built."; \