wilzbach / tools-test

1 stars 0 forks source link

rdmd --makedep(end|file) uses the source file as the target #104

Closed wilzbach closed 10 years ago

wilzbach commented 10 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#12351 From: Leandro Lucarella <leandro.lucarella@sociomantic.com> Reported version: D2

wilzbach commented 10 years ago

Comment author: Leandro Lucarella <leandro.lucarella@sociomantic.com>

Having the source file as the target for the dependencies on a Makefile is useless, as there is no rule to rebuild the source file, Make can't use that information at all. Instead the generate binary should be used as the target.

wilzbach commented 10 years ago

Comment author: Leandro Lucarella <leandro.lucarella@sociomantic.com>

https://github.com/D-Programming-Language/tools/pull/122

wilzbach commented 10 years ago

Comment author: github-bugzilla@puremagic.com

Commits pushed to master at https://github.com/D-Programming-Language/tools

https://github.com/D-Programming-Language/tools/commit/12e73a2537102c34e0d2c04361390e37f2389381 Fix issue 12351: rdmd --makedep(end|file) uses the source file as the target

Having the source file as the target for the dependencies on a Makefile is useless, as there is no rule to rebuild the source file, Make can't use that information at all.

To a have a meaningful target name, now --makedep* options require -of to be present too.

https://github.com/D-Programming-Language/tools/commit/09aaa0953e79052f70ea71800f3d344feec82ff3 Merge pull request BZ#122 from leandro-lucarella-sociomantic/rdmd-exe-target

Fix rdmd --makedep(end|file) (issues 12351 and 12354)