]> granicus.if.org Git - vnstat/commitdiff
fix profile target
authorTeemu Toivola <git@humdi.net>
Mon, 19 Oct 2015 18:52:20 +0000 (21:52 +0300)
committerTeemu Toivola <git@humdi.net>
Mon, 19 Oct 2015 18:52:20 +0000 (21:52 +0300)
Makefile.am
Makefile.in

index 96eb21fa7f041631f16847c8be1b5747842a42da..c57211579855bba99f022bbd319b2f0ec2d92e22 100644 (file)
@@ -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
 
index 20e93a609f0c661e66eff5b31879d1fd420a7ceb..9607cbc1e1570346f1c13727f0b776f2b7595cb9 100644 (file)
@@ -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