First go at a .gitignore file.
[gazelle.git] / Makefile
blobeed93e7959b499398cef4cfed7f0a71bff6b2647
2 CFLAGS=-Wall -g -O6 -std=c99
3 SUBDIRS=runtime lang_ext utilities
4 TARGETS=all clean doc
6 .PHONY: $(TARGETS)
7 all: lua_path
8 @for dir in $(SUBDIRS) ; do make -w -C $$dir $@; done
10 doc: docs/manual.html
12 clean:
13 rm -f lua_path *.dot *.png docs/manual.html docs/*.png
14 @for dir in $(SUBDIRS) ; do make -w -C $$dir $@; done
16 lua_path: Makefile
17 echo -n "export LUA_PATH=`pwd`/compiler/?.lua\\;`pwd`/sketches/?.lua" > lua_path
18 echo "\\;`pwd`/tests/?.lua" >> lua_path
19 echo export LUA_CPATH=`pwd`/lang_ext/lua/?.so >> lua_path
21 png:
22 for x in *.dot; do echo $$x; dot -Tpng -o `basename $$x .dot`.png $$x; done
24 doc: docs/manual.html
25 docs: docs/manual.html
27 docs/manual.html: docs/manual.txt docs/manual.conf docs/gzl-rtn-graph Makefile
28 asciidoc -a toc -a toclevels=3 -a icons -a iconsdir=. docs/manual.txt
30 icons:
31 cp /usr/share/asciidoc/icons/*.png docs
33 test:
34 for test in tests/test*.lua; do lua $$test; done