[build] linking lang-mugiwara against core and ast
[ozulis.git] / Makefile
blob4256a3dd8b5e33a3c38f747c9810fdd0c54e4a9b
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)
12 install:
13 make $(MAKEOPT) -C $(BUILDDIR) install
15 doc:
16 doxygen doc/Doxyfile && cp doc/tabs.css doc/html/
18 check: all
19 make $(MAKEOPT) -C $(BUILDDIR)
20 @echo
21 @echo " ---------------------------------"
22 @echo " | TEST SUITE |"
23 @echo " ---------------------------------"
24 @echo
26 clean:
27 make $(MAKEOPT) -C $(BUILDDIR) clean
28 # find . \( -name '*~' \) -exec rm -f {} \;
30 distclean:
31 rm -rf $(BUILDDIR) config.mk
33 .PHONY: doc help
35 help:
36 @echo "build build the project"
37 @echo "check check the project"
38 @echo "clean clean the project"
39 @echo "distclean distclean the project"
40 @echo "doc generate the doxygen html documentation"
41 @echo "lighttpd-start starts the lighttpd server"
42 @echo "lighttpd-restart restarts the lighttpd server"
43 @echo "lighttpd-stop stops the lighttpd server"
45 doc/lighttpd/local.conf: Makefile
46 echo var.doc_dir = \"$$PWD/doc\" >$@
48 lighttpd-start: doc/lighttpd/local.conf
49 lighttpd -f doc/lighttpd/lighttpd.conf
51 lighttpd-stop:
52 killall -15 lighttpd
54 lighttpd-restart: lighttpd-stop lighttpd-start
56 clean: tests-clean
57 tests-clean:
58 find tests \( -name '*.ll' -o -name '*.bc' -o -name '*.bin' \) -exec rm {} \;
59 for i in tests/lang/mugiwara/input/expr/*-*-*; do i=$${i/.mgw/}; if [[ -f $$i ]] ; then rm $$i; fi; done
61 remove-trailing-whitespaces:
62 find src -type f -exec sed -i 's/ \+$$//g' {} \;
64 tags-vim:
65 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q src /usr/include/c++/4.3.3/ /usr/include/llvm && mv tags $@
67 tags-emacs:
68 find src \( -name '*.hh' -o -name '*.hxx' -o -name '*.cc' \) -print0 | xargs -0 ctags.emacs -T --members --globals --declarations -o$@
70 .PHONY: tags-vim tags-emacs