9 test -d
$(BUILDDIR
) || .
/configure
--build-dir
$(BUILDDIR
)
10 make
$(MAKEOPT
) -C
$(BUILDDIR
) generators
11 make
$(MAKEOPT
) -C
$(BUILDDIR
)
14 make
$(MAKEOPT
) -C
$(BUILDDIR
) install
17 doxygen doc
/Doxyfile
&& cp doc
/tabs.css doc
/html
/
20 test -d reports || mkdir reports
&& \
23 --out-xml reports
/report-
$${ts}.xml \
24 --out-json reports
/report-
$${ts}.json \
25 | tee reports
/report-
$${ts}.out
&& \
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
33 @echo
" ---------------------------------"
34 @echo
" | TEST SUITE |"
35 @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
)
43 make
$(MAKEOPT
) -C
$(BUILDDIR
) clean
44 find . \
( -name
'*~' \
) -exec
rm -f
{} \
;
47 rm -rf
$(BUILDDIR
) config.mk
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
70 lighttpd-restart
: lighttpd-stop lighttpd-start
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' {} \
;
81 ctags
-R
--c
++-kinds
=+p
--fields
=+iaS
--extra
=+q src
/usr
/include/c
++/4.3.3/ /usr
/include/llvm
&& mv
tags $@
84 find src \
( -name
'*.hh' -o
-name
'*.hxx' -o
-name
'*.cc' \
) -print0 | xargs
-0 ctags.emacs
-T
--members
--globals
--declarations
-o
$@
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