# Top Makefile for Pekoe
.PHONY: all test check clean distclean cxx doc check-full
SUBDIRS = src test
all:
for d in $(SUBDIRS); do (cd $$d; $(MAKE) all); done
test: check
check:
for d in $(SUBDIRS); do (cd $$d; $(MAKE) check); done
clean:
for d in $(SUBDIRS); do (cd $$d; $(MAKE) clean); done
distclean: clean
#for d in $(SUBDIRS); do (cd $$d; $(MAKE) distclean); done
-rm -rf doc/api/*
cxx:
make clean
CC=g++ make check
make clean
doc:
doxygen doc/doxygen.conf
check-full:
mkdir -p test/coverage
lcov --directory src --zerocounters
make clean
CFLAGS="-fprofile-arcs -ftest-coverage" make check
cd src; gcov *.o
lcov --directory src --capture --output-file test/coverage/coverage.info
genhtml --output-directory test/coverage test/coverage/coverage.info