Fix check-coverage target (CFLAGS+LDFLAGS not set properly)

Reported-by: https://github.com/darnir
This commit is contained in:
Tim Rühsen 2016-09-25 12:48:32 +02:00
parent 9b2d7b7a9c
commit 069c6ff091
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ clean-local:
check-coverage:
$(MAKE) clean
lcov --no-external --capture --initial --directory . --output-file libpsl.info
CFLAGS=$CFLAGS" --coverage" LDFLAGS=$LDFLAGS" --coverage" $(MAKE) check
CFLAGS=$$CFLAGS" --coverage" LDFLAGS=$$LDFLAGS" --coverage" ./configure && $(MAKE) check
lcov --no-external --capture --directory . --output-file libpsl.info
# lcov --remove libpsl.info 'tests/*.c' 'src/lookup_*' 'src/psl2c.c' -o libpsl.info
genhtml --prefix . --ignore-errors source libpsl.info --legend --title "libpsl" --output-directory=lcov