Major changes to lookahead calculation -- still buggy
[gazelle.git] / Makefile
blobcc2408f549eaef91e763242d66f7400944ebbb26
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 "export LUA_PATH=`pwd`/compiler/?.lua\\;`pwd`/sketches/?.lua" > lua_path
18 echo export LUA_CPATH=`pwd`/lang_ext/lua/?.so >> lua_path
20 png:
21 for x in *.dot; do echo $$x; dot -Tpng -o `basename $$x .dot`.png $$x; done
23 doc: docs/manual.html
24 docs: docs/manual.html
26 docs/manual.html: docs/manual.txt
27 asciidoc -a toc -a toclevels=3 docs/manual.txt