GNU bug report logs - #79049
ChangeLog is added to distribution even when inside a false conditional

Previous Next

Package: automake;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Sat, 19 Jul 2025 14:00:03 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Karl Berry <karl <at> freefriends.org>
To: ~@wolfsden.cz
Cc: 79049 <at> debbugs.gnu.org
Subject: bug#79049: ChangeLog is added to distribution even when inside a false conditional
Date: Thu, 24 Jul 2025 10:00:29 -0600
    if DISTRIBUTE_CHANGELOG
    ChangeLog:
            echo nop
    endif

I haven't had a chance to test this, but how about making the conditional
merely define a variable, and a fallback ChangeLog rule, as in:

if DISTRIBUTE_CHANGELOG
ChangeLog_target = ChangeLog
else
ChangeLog_target = no_ChangeLog
ChangeLog:
endif
$(ChangeLog_target):
	make changelog

I admit I still haven't got my mind wrapped very firmly around this
scenario :), so I might be way off. Just a thought. --best, karl.




This bug report was last modified 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.