Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (39 sloc) 1.343 kb
4fe3866 @xolox Documentation links for LuaSocket, LuaFileSystem & Penlight.
authored
1 # Makefile for the Lua LXSH module.
2 #
3 # Author: Peter Odding <peter@peterodding.com>
6b8ad3e @xolox Final preparations for publishing the next rockspec
authored
4 # Last Change: October 4, 2011
4fe3866 @xolox Documentation links for LuaSocket, LuaFileSystem & Penlight.
authored
5 # URL: http://peterodding.com/code/lua/lxsh/
6
b249147 @xolox Lua highlighter tests, automatic rockspec generation, and then some
authored
7 VERSION = $(shell grep _VERSION src/init.lua | cut "-d'" -f 2)
8 RELEASE = $(VERSION)-1
9 PACKAGE = lxsh-$(RELEASE)
ffb8aae @xolox Support for external style sheets
authored
10 STYLESHEETS = examples/earendel.css \
11 examples/slate.css \
12 examples/wiki.css
13
14 demo: $(STYLESHEETS)
b249147 @xolox Lua highlighter tests, automatic rockspec generation, and then some
authored
15 @mkdir -p examples/earendel examples/slate examples/wiki
16 @lua etc/demo.lua
ebdb3e2 @xolox Initial commit
authored
17
b249147 @xolox Lua highlighter tests, automatic rockspec generation, and then some
authored
18 test:
19 @lua test/lexers.lua
20 @lua test/highlighters.lua
ffb8aae @xolox Support for external style sheets
authored
21
eec67d9 @xolox Cleanup the documentation link scanner
authored
22 links:
23 @lua etc/doclinks.lua
24
b249147 @xolox Lua highlighter tests, automatic rockspec generation, and then some
authored
25 examples/%.css: src/colors/%.lua src/init.lua
540f2ed @xolox Support for multiple output formats (HTML, LaTeX, RTF)
authored
26 @lua -e "print(require 'lxsh'.formatters.html.stylesheet'$(notdir $(basename $@))')" > $@
ebdb3e2 @xolox Initial commit
authored
27
28 package: demo
b249147 @xolox Lua highlighter tests, automatic rockspec generation, and then some
authored
29 @rm -f $(PACKAGE).zip
30 @mkdir -p $(PACKAGE)/etc
6b8ad3e @xolox Final preparations for publishing the next rockspec
authored
31 @cp -al etc/lxsh etc/demo.lua etc/doclinks.lua etc/styleswitcher.js $(PACKAGE)/etc
b249147 @xolox Lua highlighter tests, automatic rockspec generation, and then some
authored
32 @cp -al examples $(PACKAGE)
33 @cp -al src $(PACKAGE)
34 @cp README.md TODO.md $(PACKAGE)
35 @zip $(PACKAGE).zip -x '*.sw*' -r $(PACKAGE)
36 @rm -R $(PACKAGE)
37 @echo Generated $(PACKAGE).zip
38
39 rockspec: package
40 @cat etc/template.rockspec \
41 | sed "s/{{VERSION}}/$(RELEASE)/g" \
42 | sed "s/{{DATE}}/`export LANG=; date '+%B %d, %Y'`/" \
43 | sed "s/{{HASH}}/`md5sum $(PACKAGE).zip | cut '-d ' -f1 `/" \
44 > $(PACKAGE).rockspec
45 @echo Generated $(PACKAGE).rockspec
46
4fe3866 @xolox Documentation links for LuaSocket, LuaFileSystem & Penlight.
authored
47 .PHONY: demo test links package
Something went wrong with that request. Please try again.