[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
is $* the complete path?
From: |
Assar Westerlund |
Subject: |
is $* the complete path? |
Date: |
15 Dec 2000 04:40:02 +0100 |
User-agent: |
Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 |
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."; \
- is $* the complete path?,
Assar Westerlund <=
- Re: is $* the complete path?, Paul D. Smith, 2000/12/15
- Re: is $* the complete path?, Assar Westerlund, 2000/12/15
- Re: is $* the complete path?, Paul D. Smith, 2000/12/15
- Re: is $* the complete path?, Alexandre Oliva, 2000/12/15
- Re: is $* the complete path?, Assar Westerlund, 2000/12/15
- Re: is $* the complete path?, Alexandre Oliva, 2000/12/15
- Re: is $* the complete path?, Assar Westerlund, 2000/12/15