|
From: Tatsuro M. <tma...@ya...> - 2009-12-01 01:14:10
|
Hello Han and Ethan Thank you for your helpful comments. > To me it looks like the lua section in src/Makefile.am should just be > > pkglibexec_SCRIPTS = > if BUILD_LUA > pkglibexec_SCRIPTS += gnuplot-tikz.lua > endif > The above was successful to remove $(EXEEXT) from gnuplot-tikz.lua$(EXEEXT). However make make[3]: *** No rule to make target `gnuplot-tikz.lua', needed by `all-am'. Stop. make[3]: Leaving directory `/cygdrive/d/usr/Tatsu/cyghome-1.7/gnuplotcvs/gnuplot/src' make[2]: [all-recursive] Error 1 (ignored) make install-strip make[3]: *** No rule to make target `gnuplot-tikz.lua', needed by `all-am'. Stop. Perhaps I have to tweak the below. > (or possibly that should be dist_pkglibexec_SCRIPTS) For the details see > "info automake other scripts". At the moment I manually copy and strip gnuplot.exe and gnuplot_x11.exe which have not been installed by make install-strip from the side effect of the error above. Ethan> >Or we could create another subdirectory under /usr/local/share/gnuplot/VERSION/ >We already have subdirectories for javascript and PostScript, so adding one for >lua scripts seems reasonable. But the lua.trm source code will have to be changed also, >so that it knows where to look for the script file. I will attempt to create a patch. I temporarily put the script 'gnuplot-tikz.lua' to /usr/local/libexec/gnuplot/4.5/. I will wait for your patch. Regards Tatsuro --- Hans-Bernhard Br将モker wrote: > Ethan Merritt wrote: > > > Yes, this is a problem with autotools. > > Actually, it's more a problem with how we use them. > > > Because the file is installed in $libexecdir, the autotools think it is an executable > > and therefore they add the extension $(EXEEXT). > > No. It thinks so because we told it so, by listing gnuplot-tikz.lua in > gnuplotlibexec_PROGRAMS. It's the _PROGRAMS part that makes this a > presumed binary executable, and causes $(EXEEXT) to be added to its name. > > To me it looks like the lua section in src/Makefile.am should just be > > pkglibexec_SCRIPTS = > if BUILD_LUA > pkglibexec_SCRIPTS += gnuplot-tikz.lua > endif > > (or possibly that should be dist_pkglibexec_SCRIPTS) For the details see > "info automake other scripts". > > Strictly speaking scripts shouldn't go to $libexecdir, nor a > subdirectory of it, like our $pkglibexecdir. They belong in the > platform-independent directories, e.g. $pkgdatadir. That way, even if > you install to a $prefix shared by multiple binary architectures, you > would still only copy of them. > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -------------------------------------- Learn more about HIV/AIDS - Red Ribbon Campaign 2009 http://pr.mail.yahoo.co.jp/redribbon/ |