git.iko.soy/heroku-buildpack-stack
on master help sign in
Makefile support cosmetics and README
commitab4ad1b214570cb833abbdbb0d6d9dd524d1d721 authorAaron Shim <aaron.k.shim@gmail.com> dateFri 24 Mar 2017, 22:33 (10 years ago) parent57b107c
2 files changed+10−2
README.md+6 bin/compile+4−2
README.md+6
@@ -35,6 +35,12 @@ before compilation, the `stack.yaml` will be substituted as follows:
3535 -location:
3636 git: https://mfine:abc123@github.com/mfine/heroku-buildpack-stack.git
3737
38+
39+### Makefile Support
40+This buildpack now supports an optional Makefile, in case you need to coordinate other build steps with Stack. It assumes that the Makefile includes a `make install` target that uses the Stack build command with the flag `--copy-bins`. For example, a possible `install` target configuration in the Makefile could be:
41+
42+ install: stack build --copy-bins
43+
3844[1]: https://github.com/mfine/heroku-buildpack-stack
3945[2]: http://devcenter.heroku.com/articles/buildpacks
4046[3]: https://github.com/commercialhaskell/stack
bin/compile+4−2
@@ -97,9 +97,11 @@ cd "$WORK_DIR"
9797if [ -f "$BUILD_DIR/Makefile" ]; then
9898 speak "Makefile detected"
9999 make -C "$BUILD_DIR"
100+ make -C "$BUILD_DIR" install
101+else
102+ stack setup
103+ stack build --fast --copy-bins
100104fi
101−stack setup
102−stack build --fast --copy-bins
103105
104106# Set context environment variables.
105107set-env PATH "$WORK_DIR/.local/bin:$PATH"