@@ -35,8 +35,11 @@ lua != which lua luac != which luac sh != which sh + +#sterilize the operating theatre +lua += -E extens = $(wildcard ext/*.lua) extens-names ?= $(basename $(notdir $(extens))) rendrs = $(wildcard render/*.lua) @@ -60,15 +63,8 @@ dbg-flags-luac = $(if $(debug),,-s) dbg-flags-cc = $(if $(debug),-g,-s) -# sterilize the operating theatre -export LUA_PATH=./?.lua;./?.lc -export LUA_PATH_5_3=./?.lc;./?.lua -export LUA_PATH_5_4=./?.lc;./?.lua -export LUA_INIT= -export LUA_INIT_5_3= -export LUA_INIT_5_4= # by default, we fetch and parse information about encodings we # support so that cortav can do fancy things like format math # equations by character class (e.g. italicizing variables) @@ -110,13 +106,14 @@ fossil uv add $< --as cortav.html fossil uv sync --all # clean is written in overly cautious fashion to minimize damage, -# just in case it ever gets invoked in a bad way +# just in case it ever gets invoked in a bad way (e.g. build=/) .PHONY: clean clean: rm -f $(build)/*.{html,lc,sh,txt,desktop} \ - $(build)/$(executable){,.bin} + $(build)/$(executable){,.bin} \ + $(build)/bind rmdir $(build) $(build)/%.sh: desk/%.sh | $(build)/ echo >$@ "#!$(sh)"