[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Serialized test data in table format?
- From: Sean Conner <sean@...>
- Date: Fri, 29 Sep 2017 02:38:21 -0400
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