1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

make: moved PHONY outside the USE_LCOV conditional

Apparently, automake does not like when there are multiple .PHONY
definitions and some of them are conditionals, it generates a warning:

  Makefile.am:84: warning: .PHONY was already defined in condition USE_LCOV, which is included in condition TRUE ...
  Makefile.am:58: ... '.PHONY' previously defined here

This is probably a false message, because in the end, conditional or not,
the result will not be significantly different, so this patch just moves
the .PHONY definition outside the conditional so Automake will not print
the warning.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2015-01-20 22:04:11 +01:00
committed by Carlos R. Mafra
parent a9a0d2ac85
commit d9996e6e93

View File

@@ -44,6 +44,9 @@ EXTRA_DIST = TODO BUGS BUGFORM FAQ INSTALL \
script/generate-txt-from-texi.sh \ script/generate-txt-from-texi.sh \
script/nested-func-to-macro.sh script/nested-func-to-macro.sh
.PHONY: coverage-reset coverage
if USE_LCOV if USE_LCOV
coverage-reset: coverage-reset:
find . -type f -name '*.gcda' -exec rm -f '{}' ';' find . -type f -name '*.gcda' -exec rm -f '{}' ';'
@@ -54,8 +57,6 @@ coverage:
-mkdir -p coverage @lcov_output_directory@ -mkdir -p coverage @lcov_output_directory@
lcov --compat-libtool --capture --directory . --output-file coverage/coverage.info lcov --compat-libtool --capture --directory . --output-file coverage/coverage.info
genhtml --output-directory @lcov_output_directory@ coverage/coverage.info genhtml --output-directory @lcov_output_directory@ coverage/coverage.info
.PHONY: coverage-reset coverage
endif endif
# make update-lang PO=<lang> # make update-lang PO=<lang>