bmx-ng / bmk

The enhanced BlitzMax build program.
zlib License
28 stars 13 forks source link

make.bmk: .ico, .settings, ... should fallback to %infile% #68

Closed GWRon closed 5 years ago

GWRon commented 5 years ago

Coming from this thread: https://www.syntaxbomb.com/index.php/topic,5536.new.html#new

When defining a custom %outfile% (via "-o outfile.exe") then make.bmk tries to use "outfile.ico", "outfile.rc" and the likes. If they aren't found BMK should try to use the "defaults" at "infile.ico", "infile.rc" etc.

If BMK makes adjustments depending on build type (appending ".console" or ".debug") then the "fallback lookup" should take that into consideration too.

Hezkore commented 5 years ago

There's no reason to look in the output folder first; it would only create an unnecessary error. The .rc file will always end up in the input/source folder anyways.