Skip to content

Commit

Permalink
[Feature] Add a Tupfile for building the project with Tup
Browse files Browse the repository at this point in the history
This is more for my own personal use since I prefer Tup to GNU Make
nowadays, thus the README does not describe Tup as a requirement or as
the primary way to build Luvent.
  • Loading branch information
Eric James Michael Ritz committed Jun 27, 2015
1 parent bc5796c commit b7c1920
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Tupfile.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
local sources = {"src/Luvent.lua"}
local tests = {"tests/Luvent.spec.lua"}

tup.rule(sources, "^ Running Luacheck^ luacheck %f")

tup.rule(sources,
"^ Creating TAGS for Emacs^ ctags-exuberant --languages=lua -e %f",
{"TAGS"})

tup.rule(tests, [[^ Running Unit Tests^ busted --pattern=".spec.lua" %f]])

tup.rule(sources,
[[^ Generating Documentation^ ldoc --dir="docs/" %f]],
{"docs/index.html", "docs/ldoc.css"})

0 comments on commit b7c1920

Please sign in to comment.