-
Yuto KAWAMURA(kawamuray) authored
Fixes issues 758 and 912. Since ghc -M does not generate inter object dependency rule for object files, dependencies from a target executable seed object (e.g. src/hluxid.o) to objects which finally will be linked to the target object (e.g. src/Ganeti/Daemon.o) are missing in Makefile.ghc. For instance, following commands will not rebuild src/hluxid inspite of its dependent object src/Ganeti/Daemon.o has been updated. $ make # rebuild all once $ touch src/Ganeti/Daemon.hs $ make # this will rebuild src/Ganeti/Daemon.o, not src/hluxid.o This patch adds simple substitution code after the Makefile.ghc generation to add additional inter object dependency for all object files to force relink related objects when a linked object has been updated. Signed-off-by: Yuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com> Signed-off-by: Petr Pudlak <pudlak@google.com> Reviewed-by: Petr Pudlak <pudlak@google.com>
09ff6a25