[build] generating json report by default
[ozulis.git] / Makefile
blob660c520727021ed4c1d927bb7874ba912ab01a7b
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: install
20 make $(MAKEOPT) -C $(BUILDDIR)
21 @echo
22 @echo " ---------------------------------"
23 @echo " | TEST SUITE |"
24 @echo " ---------------------------------"
25 @echo
26 test -d reports || mkdir reports
27 ts=$$(date +%s); ./moulette tests/lang/test-suite --out-xml reports/report-$${ts}.xml --out-json reports/report-$${ts}.json
29 clean:
30 make $(MAKEOPT) -C $(BUILDDIR) clean
31 find . \( -name '*~' \) -exec rm -f {} \;
33 distclean:
34 rm -rf $(BUILDDIR) config.mk
36 .PHONY: doc help
38 help:
39 @echo "build build the project"
40 @echo "check check the project"
41 @echo "clean clean the project"
42 @echo "distclean distclean the project"
43 @echo "doc generate the doxygen html documentation"
44 @echo "lighttpd-start starts the lighttpd server"
45 @echo "lighttpd-restart restarts the lighttpd server"
46 @echo "lighttpd-stop stops the lighttpd server"
48 doc/lighttpd/local.conf: Makefile
49 echo var.doc_dir = \"$$PWD/doc\" >$@
51 lighttpd-start: doc/lighttpd/local.conf
52 lighttpd -f doc/lighttpd/lighttpd.conf
54 lighttpd-stop:
55 killall -15 lighttpd
57 lighttpd-restart: lighttpd-stop lighttpd-start
59 clean: tests-clean
60 tests-clean:
61 find tests \( -name '*.ll' -o -name '*.bc' -o -name '*.bin' \) -exec rm {} \;
62 for i in tests/lang/mugiwara/input/expr/*-*-*; do i=$${i/.mgw/}; if [[ -f $$i ]] ; then rm $$i; fi; done
64 remove-trailing-whitespaces:
65 find src -type f -exec sed -i 's/ \+$$//g' {} \;
67 tags-vim:
68 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q src /usr/include/c++/4.3.3/ /usr/include/llvm && mv tags $@
70 tags-emacs:
71 find src \( -name '*.hh' -o -name '*.hxx' -o -name '*.cc' \) -print0 | xargs -0 ctags.emacs -T --members --globals --declarations -o$@
73 messages:
74 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
76 .PHONY: tags-vim tags-emacs messages