-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (17 loc) · 694 Bytes
/
Makefile
File metadata and controls
21 lines (17 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY : docs tests tags
all: docs tests tags
# We generate documentation via the LuaDoc tool but the directory
# where we store the documents may not exist. This rule creates the
# documentation directory if it is not present. LuaDoc will also spit
# out a 'luadoc.css' file into the top-level directory which we do not
# want to keep. This rule will delete it.
docs:
if test ! -d "docs/"; then mkdir "docs"; fi
ldoc --dir="docs/" "src/Luvent.lua"
if test -f "luadoc.css"; then rm "luadoc.css"; fi
tests:
luacheck ./src/Luvent.lua && \
busted --pattern=".spec.lua" ./tests
# Currently we only create a list of tags suitable for GNU Emacs.
tags:
ctags-exuberant -Re src/Luvent.lua