builddir != srcdir.
+2000-12-15 Akim Demaille <akim@epita.fr>
+
+ * man/Makefile.am (.x.1): Fix to work properly with
+ builddir != srcdir.
+
2000-12-15 Akim Demaille <akim@epita.fr>
* aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77))
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."; \
config.sub.1: $(srcdir)/config.sub.x $(top_srcdir)/config.sub
.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."; \