bug-texinfo
[Top][All Lists]
Advanced

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

Re: Bad use of EXEEXT in man/Makefile.am


From: Karl Berry
Subject: Re: Bad use of EXEEXT in man/Makefile.am
Date: Wed, 20 Mar 2013 23:28:09 GMT

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

I guess.  If this doesn't work, or if there's a simpler way, let me know.

k

--- Makefile.am (revision 5242)
+++ Makefile.am (working copy)
@@ -42,13 +42,15 @@
 MAKEINFO = $(PERL) -I "$(tpdir)" "$(tpdir)"/texi2any.pl
 #
 tplibdir = $(tpdir)/maintain/lib
-mi_perl5lib = 
"$(tpdir):$(tplibdir)/libintl-perl/lib:$(tplibdir)/Unicode-EastAsianWidth/lib:$(tplibdir)/Text-Unidecode/lib"
+mi_perl5lib_path = 
"$(tpdir):$(tplibdir)/libintl-perl/lib:$(tplibdir)/Unicode-EastAsianWidth/lib:$(tplibdir)/Text-Unidecode/lib"
+mi_perl5lib = PERL5LIB=$(mi_perl5lib_path); export PERL5LIB
 
-# Set up the variables:
+# Set up the variables.  makeinfo is no longer a .exe(cutable).
 man_rule_0 = \
-  program=`expr '/$@' : '.*/\(.*\)\.1'` \
+  exe_ext="$(EXEEXT)" \
+  && program=`expr '/$@' : '.*/\(.*\)\.1'` \
   && case $$program in \
-         makeinfo) dir=tp; PERL5LIB=$(mi_perl5lib); export PERL5LIB;; \
+         makeinfo) dir=tp; $(mi_perl5lib); exe_ext="";; \
             info*) dir=info; test $$program != info || program=g$$program;; \
     *install-info) dir=install-info; program=g$$program;; \
                 *) dir=util;; esac \
@@ -59,8 +61,8 @@
 # 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 cd "$$dir" '&&' $(MAKE) $(AM_MAKEFLAGS) $$program$$exe_ext \
+  &&     (cd "$$dir"  &&  $(MAKE) $(AM_MAKEFLAGS) $$program$$exe_ext) \
   && echo $(HELP2MAN) --name=\""$$name"\" -I "$$h2m" "$$dir/$$program" -o '$@'\
   &&      $(HELP2MAN) --name="$$name"     -I "$$h2m" "$$dir/$$program" -o '$@'
 



reply via email to

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