Skip to content
Snippets Groups Projects
  1. Jul 23, 2012
    • Iustin Pop's avatar
      Change how we create the 'ganeti' symlink · 924ecd85
      Iustin Pop authored
      
      Currently, if one runs 'make' in an already fully-built tree, this is
      the result:
      
        cd . && test -h "ganeti" || { rm -f ganeti && ln -s lib ganeti; }
        make  all-am
        make[1]: Entering directory `/tmp/test'
        cd . && test -h "ganeti" || { rm -f ganeti && ln -s lib ganeti; }
        make[1]: Leaving directory `/tmp/test'
      
      This is because commit dc7d2c49 added 'ganeti' (which is a PHONY
      target) to BUILT_SOURCES, and since that is a dependency of other,
      real targets, it means the ganeti target is always remade.
      
      To fix this, we keep ganeti as a PHONY target, but we remove it from
      the 'built_base_sources' target, and instead we only remake it
      manually in the stamp-directories target. A make run now is just:
      
        make  all-am
        make[1]: Entering directory `/tmp/test'
        make[1]: Nothing to be done for `all-am'.
        make[1]: Leaving directory `/tmp/test'
      
      Note that we can't get rid of the all-am since we use BUILT_SOURCES.
      
      We also remove the comment of BUILT_SOURCES since it no longer depends
      on PHONY targets.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      924ecd85
    • Iustin Pop's avatar
      Partial undo of "Makefile: Streamline directory creation" · 3735787e
      Iustin Pop authored
      
      Commit c964d962 changed the way we create directories, by two things:
      
      - unifying all dependencies and ad-hoc directory creation into a
        single target (all_dirfiles)
      - changing how directories are created from a stamp file to .dir files
        in each directory
      
      The first item is a very good one, but the second item is debatable:
      there's no per-se advantage of .dir files versus a single one,
      top-level, since both the .dir file and stamp-directories creation are
      depending on Makefile, which is the only one which can introduce new
      directories.
      
      On the other hand, moving back from .dir files to stamp-directories
      has an advantage: "make -d | wc -l" does from ~8.7K lines to ~5.3K
      lines, because we eliminate the many .dir files and their multiple
      implicit and explicit dependencies (the %/.dir files fall under
      multiple patterns).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      3735787e
    • Iustin Pop's avatar
      A few style fixes in Makefile.am · 5098afd1
      Iustin Pop authored
      
      Seen while debugging make rules.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      5098afd1
  2. Jul 20, 2012
  3. Jul 19, 2012
  4. Jul 18, 2012
  5. Jul 17, 2012
  6. Jul 13, 2012
  7. Jul 11, 2012
  8. Jul 07, 2012
  9. Jul 06, 2012
    • Iustin Pop's avatar
      Replace a few explicit case expressions · 76ae2e5b
      Iustin Pop authored
      
      Since we're just talking about converting Maybe into another monad, we
      can do that via the maybe function, instead of explicit casing.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      76ae2e5b
    • Iustin Pop's avatar
      Fix Haskell coverage results · 96eccc1f
      Iustin Pop authored
      
      There are two current issues with the coverage values:
      
      - we don't import all modules, thus leading to incomplete
        coverage results (too optimistic);
      - we use hpc in its default mode (intersection), which means that even
        modules which do have coverage results but are not used in all
        binaries we test will be dropped from the results; thanks to Agata,
        passing --union to hpc is enough to have better results (don't
        remember why this wasn't there in the first place…)
      
      After adding more modules to the import list and fixing the combining
      mode, we now have a complete list of modules in coverage results, many
      with zero coverage, so our overall coverage has dropped to about 60%.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      96eccc1f
Loading