stevedonovan / Lake

A Lua-based Build Tool
MIT License
134 stars 17 forks source link

Using lakefile from rockspec. #37

Open moteus opened 11 years ago

moteus commented 11 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.