]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Consolidate list of custom phony targets
authorMichael Pratt <mcpratt@pm.me>
Sun, 24 Nov 2024 19:03:58 +0000 (19:03 +0000)
committerAaron Merey <amerey@redhat.com>
Fri, 10 Jan 2025 16:01:00 +0000 (11:01 -0500)
commitc79c1d4d1d2995aefeb0119868b19c08d3184edb
treeae239701dbb48a93e3f7a474f17d8de1fb36ad53
parentb43943afba2026dcb1950d43ada000a4c8fd0793
Consolidate list of custom phony targets

Having a target defined as phony within a condition
while another target is always defined as phony
causes an automake warning:

  Makefile.am:67: warning: .PHONY was already defined in condition TRUE, which includes condition GCOV ...
  config/eu.am:141: ... '.PHONY' previously defined here
  Makefile.am:21:   'config/eu.am' included from here
  tests/Makefile.am:895: warning: .PHONY was already defined in condition TRUE, which includes condition GCOV ...
  config/eu.am:141: ... '.PHONY' previously defined here
  tests/Makefile.am:19:   'config/eu.am' included from here

Instead, list all the custom targets that are phony
in the common definitions in the eu.am file.

Since it is all related to coverage at this moment,
the list can be grouped as it is instead of moved or split.

    * Makefile.am: remove .PHONY list in conditional
    * config/eu.am: add coverage target to .PHONY list
    * tests/Makefile.am: remove .PHONY list in conditional

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Makefile.am
config/eu.am
tests/Makefile.am