diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,9 +1,11 @@ -all: test +all: test doc MODULES := lace lace.lex lace.compiler lace.builtin lace.engine lace.error LUA_VER := 5.1 -INST_BASE := /usr/local +PREFIX ?= /usr/local + +INST_BASE := $(PREFIX) INST_ROOT := $(DESTDIR)$(INST_BASE)/share/lua/$(LUA_VER) MOD_FILES := $(patsubst %,%.lua,$(subst .,/,$(MODULES))) @@ -18,6 +20,7 @@ LUA := LUA_PATH="$(shell pwd)/lib/?.lua;$(shell pwd)/extras/luacov/src/?.lua;;" clean: $(RM) luacov.report.out luacov.stats.out + $(RM) -r html distclean: clean find . -name "*~" -delete @@ -41,3 +44,7 @@ test: .PHONY: interactive interactive: $(LUA) -e'lace=require"lace"' -i + +doc: + @echo "Running LDoc" + @ldoc . |