Skip to content
Snippets Groups Projects
  • Felix Baumann's avatar
    87ba9ecd
    targets.mk: fix inconsistent env variable BROKEN (#2934) · 87ba9ecd
    Felix Baumann authored
    BROKEN TARGETS were built when BROKEN was set as a variable regardless of
    it's value. Even an empty BROKEN variable caused BROKEN TARGETS to be
    built. For DEVICES the number was evaluated and compared to true by Lua.
    
    Make behavior consistent for relevant values UNSET/EMPTY/0 and 1:
    UNSET/EMPTY/0: Don't build BROKEN TARGETS and DEVICES
    1: Build BROKEN TARGETS and DEVICES
    
    The behavior remains inconsistent for all positive numbers except 1.
    (even floating point)
    targets.mk: fix inconsistent env variable BROKEN (#2934)
    Felix Baumann authored
    BROKEN TARGETS were built when BROKEN was set as a variable regardless of
    it's value. Even an empty BROKEN variable caused BROKEN TARGETS to be
    built. For DEVICES the number was evaluated and compared to true by Lua.
    
    Make behavior consistent for relevant values UNSET/EMPTY/0 and 1:
    UNSET/EMPTY/0: Don't build BROKEN TARGETS and DEVICES
    1: Build BROKEN TARGETS and DEVICES
    
    The behavior remains inconsistent for all positive numbers except 1.
    (even floating point)