Having an executable build script implies force = True' in recompile'

This is slight change to the original implementation.  This version
forces a recompile if XMonad detects a custom build script.  The
previous version took into consideration the time stamps of the source
files.

For a custom build script, the source files may be located in another
location, or there could be dependencies unknown to XMonad.  Better to
just always call the build script and let it work out if something
needs to be built.
This commit is contained in:
Peter Jones
2017-02-08 19:48:42 -07:00
parent 2d8cad02fe
commit f18bda7dc7
2 changed files with 8 additions and 15 deletions

View File

@@ -48,11 +48,6 @@
instead of `ghc`. It takes one argument, the name of the
executable binary it must produce.
Note: the build script is called whenever `ghc` would have been
called. That means the `xmonad.hs` file (or any files in `lib`
need to have newer time stamps than the generated executable in
order for the build script to be called.
This fixes #8. (One of two possible custom build solutions. See
the next entry for another solution.)