While building the current autoconf with gnu-make 3.75 I've had
problems in `man', since $* did get expanded to the complete path of
the dependency and not just the file name. I've seen similar
behaviour from other instances of make, and while not knowing what is
the correct way for making to behave here I think some extra care
doesn't hurt. I added the appended patch which seems to make things
work better. Comments?
/assar
Index: man/Makefile.am
===================================================================
RCS file: /cvs/autoconf/man/Makefile.am,v
retrieving revision 1.2
diff -u -w -u -w -r1.2 Makefile.am
--- man/Makefile.am 2000/12/06 16:02:59 1.2
+++ man/Makefile.am 2000/12/15 03:39:23
@@ -24,13 +24,14 @@
SUFFIXES = .x .1
.x.1:
- @if test -f $(top_builddir)/$*; then \
+ @f=`basename $*`; \
+ if test -f $(top_builddir)/$$f; then \
echo "Updating man page $@"; \
$(HELP2MAN) \
- --include=$(srcdir)/$*.x \
+ --include=$(srcdir)/$$f.x \
--include=$(srcdir)/common.x \
--output=$@ \
- $(top_builddir)/$*; \
+ $(top_builddir)/$$f; \
else \
echo "WARNING: The man page $@ cannot be updated yet."; \
echo " Retry once the corresponding executable is built."; \