typo
[ozulis.git] / Makefile
blob80f22091b02e1e6aea49b321ec30cef17f453eab
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