stevedonovan / Lake

A Lua-based Build Tool
MIT License
132 stars 16 forks source link

Using lakefile from rockspec. #37

Open moteus opened 10 years ago

moteus commented 10 years ago

I try use lake to build rockspec (i play with AesFileEncrypt) This is fragment from my rockspec

local LAKE_FLAGS =
  " ROOT=$(PREFIX)"                ..
  " LUADIR=$(LUADIR)"              ..
  " LIBDIR=$(LIBDIR)"              ..
  " LUA_INCLUDE_DIR=$(LUA_INCDIR)" ..
  " LUA_LIB_DIR=$(LUA_LIBDIR)"     ..
  " LUA_LIBS=$(LUALIB)"            ..
""

local LAKE = "lake " .. LAKE_FLAGS .. " "

build = {
  type             = "command";
  copy_directories = {};
  build_command    = LAKE .. "build",
  install_command  = LAKE .. "test",
}

The problem is that "$(LUALIB)" already has extension, and lake add one extra extension when build.