Polishing makefile
[squish.git] / squishy
blob4e000d55329b03e3e0fb53a5e7d5e1302a78ce6b
2 -- Set this option, same as if user specified
3 -- '--executable' on the command-line. Can be 
4 -- disabled by user with '--no-executable'
5 Option "executable"
7 -- Output filename
8 Output "squish"
10 -- This is normal/main script
11 Main "squish.lua"
13 -- Add minify extension if asked to
14 if GetOption "with-minify" then
15         Module "optlex"         "minify/optlex.lua"
16         Module "optparser"      "minify/optparser.lua"
17         Module "llex"           "minify/llex.lua"
18         Module "lparser"        "minify/lparser.lua"
20         Main "minify/squish.minify.lua"
21 end
23 -- Compress Lua scripts (an excellent hack :) )
24 if GetOption "with-uglify" then
25         Module "llex"           "uglify/llex.lua"
26         
27         Main "uglify/squish.uglify.lua"
28 end
30 -- Compile output files to Lua bytecode
31 if GetOption "with-compile" then
32         Module "minichunkspy" "compile/minichunkspy.lua"
33         Main "compile/squish.compile.lua"
34 end
36 if GetOption "with-virtual-io" then
37         Resource "vio" "vio/vio.lua"
38 end
40 if GetOption "with-gzip" then
41         Resource "gunzip.lua" "gunzip.lua"
42         Main "gzip/squish.gzip.lua"
43 end
45 if GetOption "with-debug" then
46         Resource "squish.debug" "squish.debug"
47 end