1. 05 Feb, 2014 1 commit
  2. 27 Jan, 2014 2 commits
  3. 22 Jan, 2014 1 commit
  4. 20 Jan, 2014 1 commit
  5. 17 Jan, 2014 1 commit
    • Jose A. Lopes's avatar
      Fix configure dirs · ae6a0a7c
      Jose A. Lopes authored
      Fix overridable configure directories, namely, --bindir, --sbindir,
      and --mandir.
      
      Variables 'bindir', 'sbindir', and 'mandir' are exported from
      'configure.ac' to 'Makefile.am'. At first, it would seem to be
      possible to do the following:
      
        MANDIR := $(mandir)
        ...
        mandir = $(versionedsharedir)$(datarootdir)/$(MANDIR)
      
      However, this does not work in the output of 'configure' (i.e., the
      'Makefile'), these variables will be reordered:
      
        mandir = $(versionedsharedir)$(datarootdir)/$(MANDIR)
        ...
        MANDIR := $(mandir)
      
      As a result, 'MANDIR' will capture not the exported value from
      'configure.ac' but the 'mandir' defined in the 'Makefile'.
      
      The solution is explicitly export these variables from 'configure.ac'
      with different names, namely, 'BINDIR', 'SBINDIR', and 'MANDIR':
      
        AC_SUBST([BINDIR], $bindir)
        AC_SUBST([SBINDIR], $sbindir)
        AC_SUBST([MANDIR], $mandir)
      
      The rest is just fixing the paths and the symlinks in the 'Makefile'.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      ae6a0a7c
  6. 16 Jan, 2014 1 commit
  7. 13 Jan, 2014 5 commits
  8. 10 Jan, 2014 1 commit
  9. 09 Jan, 2014 3 commits
  10. 20 Dec, 2013 1 commit
  11. 18 Dec, 2013 1 commit
  12. 17 Dec, 2013 4 commits
  13. 13 Dec, 2013 2 commits
  14. 11 Dec, 2013 1 commit
  15. 06 Dec, 2013 1 commit
  16. 02 Dec, 2013 1 commit
  17. 26 Nov, 2013 1 commit
  18. 22 Nov, 2013 1 commit
  19. 14 Nov, 2013 2 commits
  20. 12 Nov, 2013 2 commits
  21. 08 Nov, 2013 5 commits
  22. 06 Nov, 2013 1 commit
    • Jose A. Lopes's avatar
      Optimize Haskell compilation · d16e3ce4
      Jose A. Lopes authored
      The idea is to compile (on demand, that is, when necessary) each
      source file to a normal object file, a coverage object file, a
      profiling object file, and a test object file.  Also, a given Haskell
      binary is linked with the proper object files.  This is achieved with
      the following Makefile variables:
      
      Compilation modes (profiles):
      1. HPROFILE enables/disables profiling
      2. HCOVERAGE enables/disables coverage
      3. HTEST enables/disables 'TEST' preprocessor definition
      
      A few words on testing: testing means the problem described in issue
      535: https://code.google.com/p/ganeti/issues/detail?id=535.  With
      HTEST enable, ghc will be instructed to define the preprocessor
      definition TEST, for modules that use '#ifdef TEST'.
      
      Haskell binary targets fetch the proper dependencies.  They are also
      '.PHONY' targets so that 'make' does not check for the file timestamp
      and instead it will always call 'ghc --make ...'.  This is not a
      problem because 'ghc' with the '--make' flag only compiles the
      necessary object files.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      d16e3ce4
  23. 31 Oct, 2013 1 commit