lua-users home
lua-l archive

Re: Serialized test data in table format?

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


It was thus said that the Great Russell Haley once stated:
> On Thu, Sep 28, 2017 at 10:37 PM, Sean Conner <sean@conman.org> wrote:
> > 
> > [1] The two lines in the makefile are:
> >
> > LUADIR := $(prefix)/share/lua/$(shell lua -e "print(_VERSION:match '^Lua (.*)')")
> > LIBDIR := $(prefix)/lib/lua/$(shell lua -e "print(_VERSION:match '^Lua (.*)')")
> >
> > I should probably make these:
> >
> > LUA = lua
> > prefix = /usr/local
> > datarootdir = $(prefix)/share
> > libdir = $(prefix)/lib
> >
> > LUADIR := $(DESTDIR)$(datarootdir)/lua/$(shell $(LUA) -e "print(_VERSION:match 'Lua (.*)')")
> > LIBDIR := $(DESTDIR)$(libdir)/lua($(shell $(LUA) -e "print(_VERSION:match '^Lua (.*)')")
> 
> Yup, that's what I did (LUAEXEC).
 I used LUA because of LuaRocks (https://github.com/luarocks/luarocks/wiki/Creating-a-Makefile-that-plays-nice-with-LuaRocks).
 -spc

AltStyle によって変換されたページ (->オリジナル) /