From f2163b3e571d9aa7dd2b311b9e3869e07b5d43b9 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Sun, 30 Oct 2022 20:20:40 +0300 Subject: update installation instructions --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 384525b..ea68ad9 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,16 @@ Therefore, certain functions were altered to better suit the domain. Clone library into your project or put it as a git submodule: - $ git clone --recursive https://gitlab.com/andreyorst/fennel-cljlib club + $ git clone --recursive https://gitlab.com/andreyorst/fennel-cljlib cljlib + +Make sure to set up the `FENNEL_PATH` and `LUA_PATH` environment variables to include the installation directory: + + FENNEL_PATH="cljlib/?/init.fnl;$FENNEL_PATH" + LUA_PATH="cljlib/?/init.lua;$LUA_PATH" + +Or pass them via command line arguments: + + $ fennel --add-fennel-path "cljlib/?/init.fnl" --add-package-path "cljlib/?/init.lua" Now you can require `:cljlib` from Fennel: @@ -19,11 +28,6 @@ Now you can require `:cljlib` from Fennel: (import-macros cljm :cljlib) ``` -Make sure to set up the `FENNEL_PATH` and `LUA_PATH` to include the installation directory: - - FENNEL_PATH="cljlib/?/init.fnl;$FENNEL_PATH" - LUA_PATH="cljlib/?/init.lua;$LUA_PATH" - Alternatively, precompile the library to make it load slightly faster: $ cd cljlib; make -- cgit v1.2.3