GithubHelp home page GithubHelp logo

lake's Introduction

lake

lua(jit)-based make alternative

Prerequisites

  • A luajit install that provides the include files and .dll/.so to link against (git clone https://luajit.org/git/luajit.git)
    • Linux: use make install
    • Windows: use mingw32-make or similar, then create a C:\luajit folder and move the below files to it, then add the folder to the system path
      • headers: luaxlib.h, lua.h, luaconf.h, luajit.h, lualib.h
      • binaries: luajit.exe, lua51.dll
    • Note: vanilla lua could be used as well but lake.guessOS accuracy may suffer without jit.os
  • The LuaFileSystem library (https://github.com/lunarmodules/luafilesystem.git)
    • Linux: in /usr/local/lib/lua/5.1
    • Windows: in C:\lake
    • Note: (not technically required, but incremental builds will be disabled without it)

Installation

  • Windows: mingw32-make -f Makefile.win
    • Create C:\lake and move lake.exe, lfs.dll (from prerequisites), and the lua folder to it, then add to path
  • Linux: make
    • move lake executable to /usr/local/bin/
    • move lua/lake.lua (just the file) to /usr/local/share/lua/5.1
    • move lfs.so to /usr/local/lib/lua/5.1, if not already there
  • Bootstrap:
    • lake prereqs to install luajit and lfs (specify PREFIX, LIB_PATH, and INC_PATH as needed)
    • lake install to install lake (specify PREFIX, LIB_PATH, and INC_PATH as needed)

Usage

lake --help will provide commandline usage tips for the tool

The scripts themselves are just lua files that use the implicitly linked lake.lua library bundled with the application, anything valid in lua/luajit is valid in a script.

the provided make.lua is a functional bootstrap buildscript and shows most features of the syntax and lake library functions.

lake's People

Contributors

mcrusher avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.