1 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 pkgconfigdir = $(libdir)/pkgconfig
19 pkgconfig_DATA = dali-core.pc
21 MAINTAINERCLEANFILES = \
31 `find "$(srcdir)" -type f -name Makefile.in -print` \
32 `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
35 `find . \( -name "*.gcov" -o -name "*.gcno" -o -name "*.gcda" \) -print`
38 COVERAGE_OUTPUT_DIR=doc/coverage
41 @test -z $(COVERAGE_DIR) || mkdir -p $(COVERAGE_DIR)
42 @rm -f $(COVERAGE_DIR)/*
43 @cp dali-core/.libs/*.gcda dali-core/.libs/*.gcno $(COVERAGE_DIR)
44 @for i in `find $(COVERAGE_DIR) -name "libdali_core_la-*.gcda" -o -name "libdali_core_la-*.gcno"` ;\
45 do mv $$i `echo $$i | sed s/libdali_core_la-//` ; echo $$i ; done
46 @for i in `find $(COVERAGE_DIR) -name "libdali_la-*.gcda" -o -name "libdali_la-*.gcno"` ;\
47 do mv $$i `echo $$i | sed s/libdali_la-//` ; done
48 @cd $(COVERAGE_DIR) ; lcov --base-directory . --directory . -c -o dali.info
49 @cd $(COVERAGE_DIR) ; lcov --remove dali.info "*boost*" "*/dali-env/*" "/usr/include/*" -o dali.info
50 @test -z $(COVERAGE_OUTPUT_DIR) || mkdir -p $(COVERAGE_OUTPUT_DIR)
53 @genhtml -o $(COVERAGE_OUTPUT_DIR) $(COVERAGE_DIR)/dali.info
56 @lcov -z --directory `pwd`