lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I use the make! for example, if mod3.lua requires mod1.lua and mod2.lua the simple makefile

 all: mod1.luah mod3.luah mod2.luah
        luac -o prog.exe main.lua

mod1.luah: mod1.lua
        cat mod1.lua >> main.lua

mod2.luah: mod2.lua
        cat mod2.lua >> main.lua

mod3.luah: mod1.luah mod2.luah
        cat mod3.lua >> main.lua

clean:
        rm main.lua

solves my problems.

2014-09-18 10:07 GMT-03:00 Tony Papadimitriou <tonyp@acm.org>:
Hi all,

How can one #include a bunch of files so that when compiled, a single self-contained executable is produced.

'require' does not qualify as equivalent because it needs to find the files at run-time.

TIA
Tony




--
Rodrigo Azevedo Moreira da Silva