some work on arrays and pointers, but it's definetly broken.
[ozulis.git] / Makefile
blob0c700eb40d612adda93f4d2eeceb5f7333fb0ea9
1 all:
3 BUILDDIR = build
4 MAKEOPT = --quiet
6 -include config.mk
8 all:
9 test -d $(BUILDDIR) || ./configure --build-dir $(BUILDDIR)
10 make $(MAKEOPT) -C $(BUILDDIR) generators
11 make $(MAKEOPT) -C $(BUILDDIR)
13 install: all
14 make $(MAKEOPT) -C $(BUILDDIR) install
16 doc:
17 doxygen doc/Doxyfile && cp doc/tabs.css doc/html/
19 check: all
20 make $(MAKEOPT) -C $(BUILDDIR)
21 @echo
22 @echo " ---------------------------------"
23 @echo " | TEST SUITE |"
24 @echo " ---------------------------------"
25 @echo
27 clean:
28 make $(MAKEOPT) -C $(BUILDDIR) clean
29 # find . \( -name '*~' \) -exec rm -f {} \;
31 distclean:
32 rm -rf $(BUILDDIR) config.mk
34 .PHONY: doc help
36 help:
37 @echo "build build the project"
38 @echo "check check the project"
39 @echo "clean clean the project"
40 @echo "distclean distclean the project"
41 @echo "doc generate the doxygen html documentation"
42 @echo "lighttpd-start starts the lighttpd server"
43 @echo "lighttpd-restart restarts the lighttpd server"
44 @echo "lighttpd-stop stops the lighttpd server"
46 doc/lighttpd/local.conf: Makefile
47 echo var.doc_dir = \"$$PWD/doc\" >$@
49 lighttpd-start: doc/lighttpd/local.conf
50 lighttpd -f doc/lighttpd/lighttpd.conf
52 lighttpd-stop:
53 killall -15 lighttpd
55 lighttpd-restart: lighttpd-stop lighttpd-start
57 clean: tests-clean
58 tests-clean:
59 find tests \( -name '*.ll' -o -name '*.bc' -o -name '*.bin' \) -exec rm {} \;
60 for i in tests/lang/mugiwara/input/expr/*-*-*; do i=$${i/.mgw/}; if [[ -f $$i ]] ; then rm $$i; fi; done
62 remove-trailing-whitespaces:
63 find src -type f -exec sed -i 's/ \+$$//g' {} \;
65 tags-vim:
66 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q src /usr/include/c++/4.3.3/ /usr/include/llvm && mv tags $@
68 tags-emacs:
69 find src \( -name '*.hh' -o -name '*.hxx' -o -name '*.cc' \) -print0 | xargs -0 ctags.emacs -T --members --globals --declarations -o$@
71 .PHONY: tags-vim tags-emacs