added new expr to test
[ozulis.git] / Makefile
blobd89b9c4976c4496186c260e967fe5292a0257b75
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 doc:
13 doxygen doc/Doxyfile && cp doc/tabs.css doc/html/
15 check: all
16 make $(MAKEOPT) -C $(BUILDDIR)
17 @echo
18 @echo " ---------------------------------"
19 @echo " | TEST SUITE |"
20 @echo " ---------------------------------"
21 @echo
23 clean:
24 make $(MAKEOPT) -C $(BUILDDIR) clean
25 # find . \( -name '*~' \) -exec rm -f {} \;
27 distclean:
28 rm -rf $(BUILDDIR) config.mk
30 .PHONY: doc help
32 help:
33 @echo "build build the project"
34 @echo "check check the project"
35 @echo "clean clean the project"
36 @echo "distclean distclean the project"
37 @echo "doc generate the doxygen html documentation"
38 @echo "lighttpd-start starts the lighttpd server"
39 @echo "lighttpd-restart restarts the lighttpd server"
40 @echo "lighttpd-stop stops the lighttpd server"
42 doc/lighttpd/local.conf: Makefile
43 echo var.doc_dir = \"$$PWD/doc\" >$@
45 lighttpd-start: doc/lighttpd/local.conf
46 lighttpd -f doc/lighttpd/lighttpd.conf
48 lighttpd-stop:
49 killall -15 lighttpd
51 lighttpd-restart: lighttpd-stop lighttpd-start
53 clean: tests-clean
54 tests-clean:
55 find tests \( -name '*.ll' -o -name '*.bc' -o -name '*.bin' \) -exec rm {} \;
56 for i in tests/lang/mugiwara/input/expr/*-*-*; do i=$${i/.mgw/}; if [[ -f $$i ]] ; then rm $$i; fi; done
58 remove-trailing-whitespaces:
59 find src -type f -exec sed -i 's/ \+$$//g' {} \;