Opened 13 years ago

Closed 13 years ago

#2025 closed patch (fixed)

Resolve warning from make about redefining the clean target

Reported by: russell@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The existing bindings/perl/perl.pro file redefines the clean target to ensure that on "make clean", the command "make -f Makefile.perl clean" is called. This results in warnings from make like the following:

make[1]: Entering directory `/home/russell/src/mythtv/trunk/mythtv/bindings/perl' Makefile:132: warning: overriding commands for target `clean' Makefile:109: warning: ignoring old commands for target `clean'

The attached patch uses a little hack to accomplish the same task on "make clean", but in a way that generates no warnings since the clean target does not have to be redefined.

If you want Makefile.perl to be deleted on "make clean" as well, the following line should be added after the QMAKE_CLEAN line that I have added in this patch:

QMAKE_CLEAN += Makefile.perl

IRC: russellb

Attachments (2)

perl_clean.patch (878 bytes) - added by russell@… 13 years ago.
perl_clean_rev2.patch (877 bytes) - added by russell@… 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by russell@…

Attachment: perl_clean.patch added

Changed 13 years ago by russell@…

Attachment: perl_clean_rev2.patch added

comment:1 Changed 13 years ago by anonymous

Type: defectpatch

comment:2 Changed 13 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [10541]) Fix clean target redefinition warning.

Closes #2025.

Note: See TracTickets for help on using tickets.