[moulette] starting a xml listener
[ozulis.git] / Makefile
blobffae78ae0d48cc2f4f92b04695a01a096d6c05be
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 messages:
72 cd po && find ../src/ \( -name '*.cc' -o -name '*.hh' -o -name '*.h' -o -name '*.c' -o -name '*.hxx' -o -name '*.cxx' \) -print0 | xargs -0 xgettext -o ozulis.pot --default-domain=ozulis --keyword=_ --foreign-user --package-name=ozulis --package-version=0.6 --msgid-bugs-address=bique.alexandre@gmail.com
74 .PHONY: tags-vim tags-emacs messages