• Yuto KAWAMURA(kawamuray)'s avatar
    Fix broken haskell dependencies · 09ff6a25
    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
    Signed-off-by: default avatarYuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com>
    Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
    Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
Makefile.am 74.7 KB