[tests] cleaned some 'if' tests
[ozulis.git] / Makefile
blobf3d6bf68a11d0d0901cea1a939a17e89b80bb676
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 ./moulette tests/lang/test-suite --out-xml check-result.xml
28 clean:
29 make $(MAKEOPT) -C $(BUILDDIR) clean
30 # find . \( -name '*~' \) -exec rm -f {} \;
32 distclean:
33 rm -rf $(BUILDDIR) config.mk
35 .PHONY: doc help
37 help:
38 @echo "build build the project"
39 @echo "check check the project"
40 @echo "clean clean the project"
41 @echo "distclean distclean the project"
42 @echo "doc generate the doxygen html documentation"
43 @echo "lighttpd-start starts the lighttpd server"
44 @echo "lighttpd-restart restarts the lighttpd server"
45 @echo "lighttpd-stop stops the lighttpd server"
47 doc/lighttpd/local.conf: Makefile
48 echo var.doc_dir = \"$$PWD/doc\" >$@
50 lighttpd-start: doc/lighttpd/local.conf
51 lighttpd -f doc/lighttpd/lighttpd.conf
53 lighttpd-stop:
54 killall -15 lighttpd
56 lighttpd-restart: lighttpd-stop lighttpd-start
58 clean: tests-clean
59 tests-clean:
60 find tests \( -name '*.ll' -o -name '*.bc' -o -name '*.bin' \) -exec rm {} \;
61 for i in tests/lang/mugiwara/input/expr/*-*-*; do i=$${i/.mgw/}; if [[ -f $$i ]] ; then rm $$i; fi; done
63 remove-trailing-whitespaces:
64 find src -type f -exec sed -i 's/ \+$$//g' {} \;
66 tags-vim:
67 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q src /usr/include/c++/4.3.3/ /usr/include/llvm && mv tags $@
69 tags-emacs:
70 find src \( -name '*.hh' -o -name '*.hxx' -o -name '*.cc' \) -print0 | xargs -0 ctags.emacs -T --members --globals --declarations -o$@
72 messages:
73 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
75 .PHONY: tags-vim tags-emacs messages