bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bad use of EXEEXT in man/Makefile.am


From: Eli Zaretskii
Subject: Bad use of EXEEXT in man/Makefile.am
Date: Wed, 20 Mar 2013 20:47:52 +0200

If someone re-runs autoconf, then on a platform with nonempty EXEEXT
they will be in trouble, because this snippet from man/Makefile.am:

  # Update the man page for a binary program; set up the variables,
  # make sure the binary is up-to-date and then generate the man page.
  man_rule_bin = echo "Updating man page $@" \
    && $(man_rule_0) \
    && echo cd "$$dir" '&&' $(MAKE) $(AM_MAKEFLAGS) $$program$(EXEEXT) \
    &&     (cd "$$dir"  &&  $(MAKE) $(AM_MAKEFLAGS) $$program$(EXEEXT)) \
    && echo $(HELP2MAN) --name=\""$$name"\" -I "$$h2m" "$$dir/$$program" -o 
'$@'\
    &&      $(HELP2MAN) --name="$$name"     -I "$$h2m" "$$dir/$$program" -o '$@'

will want to build ../tp/makeinfo.exe, which can no longer be done.

I guess a fix would be to change man_rule_0 so that it won't use
EXEEXT with makeinfo.

Btw, this part:

   dir="$(top_builddir)/$(native_tools)/$$dir"

yields ..//tp etc. when native_tools is empty, which is correct, but
ugly.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]