From: Teemu Toivola Date: Mon, 19 Oct 2015 18:52:20 +0000 (+0300) Subject: fix profile target X-Git-Tag: v1.15~13^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=937c98236f8c5c3fd76810d5b18142b351d0f0a2;p=vnstat fix profile target --- diff --git a/Makefile.am b/Makefile.am index 96eb21f..c572115 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,13 +7,14 @@ dist_man_MANS = man/vnstat.1 man/vnstat.conf.5 man/vnstatd.1 man/vnstati.1 EXTRA_DIST = examples UPGRADE CHANGES FAQ INSTALL_BSD INSTALL_OSX debug: - CFLAGS='-Wall -Wextra -g' ./configure && make + CFLAGS='-Wall -Wextra -g' ./configure + make -profile: check_vnstat_CFLAGS += -fprofile-arcs -ftest-coverage -profile: check_vnstat_LDLIBS += -fprofile-arcs -ftest-coverage -profile: check +profile: + CFLAGS='-Wall -Wextra -g -fprofile-arcs -ftest-coverage' LDLIBS='-fprofile-arcs -ftest-coverage' ./configure + make check lcov -c -d $(PWD) -o coverage.lcov - genhtml coverage.lcov --num-spaces 4 -p . -o coverage + genhtml coverage.lcov --num-spaces 4 -p $(PWD) -o coverage myclean: maintainer-clean diff --git a/Makefile.in b/Makefile.in index 20e93a6..9607cbc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -833,13 +833,14 @@ uninstall-man: uninstall-man1 uninstall-man5 debug: - CFLAGS='-Wall -Wextra -g' ./configure && make + CFLAGS='-Wall -Wextra -g' ./configure + make -profile: check_vnstat_CFLAGS += -fprofile-arcs -ftest-coverage -profile: check_vnstat_LDLIBS += -fprofile-arcs -ftest-coverage -profile: check +profile: + CFLAGS='-Wall -Wextra -g -fprofile-arcs -ftest-coverage' LDLIBS='-fprofile-arcs -ftest-coverage' ./configure + make check lcov -c -d $(PWD) -o coverage.lcov - genhtml coverage.lcov --num-spaces 4 -p . -o coverage + genhtml coverage.lcov --num-spaces 4 -p $(PWD) -o coverage myclean: maintainer-clean