3 # Makefile to build the Library for Virtualized Supercomputer Management
5 # Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
14 .PHONY: all clean install check docs new
16 all: backend-all lib-all python-all tests-all
18 clean: backend-clean lib-clean python-clean tests-clean
19 rm -rf -- docs/doxygen
21 install: backend-install lib-install python-install include-install
24 $(MAKE) -I $(PWD) -C tests check
27 $(MAKE) -I $(PWD) -C tests $@
30 rm -rf -- docs/doxygen
33 cp doxygen.css docs/doxygen/html/doxygen.css
37 lcov --directory . --zerocounters
39 lcov --directory . --capture --output-file ./coverage/mgmt.info
40 genhtml -o ./coverage --num-spaces 4 ./coverage/mgmt.info
43 @echo $@ | sed 's,\([a-z]*\)-all,echo "building \1"; $(MAKE) -I $(PWD) -C \1 all;,g' | sh
46 @echo $@ | sed 's,\([a-z]*\)-clean,echo "cleaning \1"; $(MAKE) -I $(PWD) -C \1 clean;,g' | sh
49 @echo $@ | sed 's,\([a-z]*\)-install,echo "installing \1"; $(MAKE) -I $(PWD) -C \1 install;,g' | sh
52 $(MAKE) clean && $(MAKE)