[report] whaoouuuu removed useless <br/> ;-)
[ozulis.git] / Makefile
blob30de7e53f9c94be825df07dd26b0ca61909f29b1
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 make_check = \
20 test -d reports || mkdir reports && \
21 ts=$$(date +%s); \
22 ./moulette $1 \
23 --out-xml reports/report-$${ts}.xml \
24 --out-json reports/report-$${ts}.json \
25 | tee reports/report-$${ts}.out && \
26 cd reports && \
27 ln -sf report-$${ts}.xml report-latest.xml && \
28 ln -sf report-$${ts}.json report-latest.json && \
29 ln -sf report-$${ts}.out report-latest.out
31 check: install
32 @echo
33 @echo " ---------------------------------"
34 @echo " | TEST SUITE |"
35 @echo " ---------------------------------"
36 @echo
37 $(call make_check,tests/test-suite tests/lang/mugiwara/expr-test-suite)
39 check-no-expr: install
40 $(call make_check,tests/test-suite)
42 clean:
43 make $(MAKEOPT) -C $(BUILDDIR) clean
44 find . \( -name '*~' \) -exec rm -f {} \;
46 distclean:
47 rm -rf $(BUILDDIR) config.mk
49 .PHONY: doc help
51 help:
52 @echo "build build the project"
53 @echo "check check the project"
54 @echo "clean clean the project"
55 @echo "distclean distclean the project"
56 @echo "doc generate the doxygen html documentation"
57 @echo "lighttpd-start starts the lighttpd server"
58 @echo "lighttpd-restart restarts the lighttpd server"
59 @echo "lighttpd-stop stops the lighttpd server"
61 doc/lighttpd/local.conf: Makefile
62 echo var.doc_dir = \"$$PWD/doc\" >$@
64 lighttpd-start: doc/lighttpd/local.conf
65 lighttpd -f doc/lighttpd/lighttpd.conf
67 lighttpd-stop:
68 killall -15 lighttpd
70 lighttpd-restart: lighttpd-stop lighttpd-start
72 clean: tests-clean
73 tests-clean:
74 find tests \( -name '*.ll' -o -name '*.bc' -o -name '*.bin' \) -exec rm {} \;
75 for i in tests/lang/mugiwara/input/expr/*-*-*; do i=$${i/.mgw/}; if [[ -f $$i ]] ; then rm $$i; fi; done
77 remove-trailing-whitespaces:
78 find src -type f -exec sed -i 's/ \+$$//g' {} \;
80 tags-vim:
81 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q src /usr/include/c++/4.3.3/ /usr/include/llvm && mv tags $@
83 tags-emacs:
84 find src \( -name '*.hh' -o -name '*.hxx' -o -name '*.cc' \) -print0 | xargs -0 ctags.emacs -T --members --globals --declarations -o$@
86 messages:
87 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
89 .PHONY: tags-vim tags-emacs messages