Bug 12351 – rdmd --makedep(end|file) uses the source file as the target

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-12T07:23:00Z
Last change time
2014-04-24T16:45:26Z
Keywords
industry, pull
Assigned to
nobody
Creator
leandro.lucarella

Comments

Comment #0 by leandro.lucarella — 2014-03-12T07:23:25Z
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.
Comment #1 by leandro.lucarella — 2014-03-12T07:27:05Z
Comment #2 by github-bugzilla — 2014-03-19T12:37:06Z
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 #122 from leandro-lucarella-sociomantic/rdmd-exe-target Fix rdmd --makedep(end|file) (issues 12351 and 12354)