Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 795 Bytes

BUILD.md

File metadata and controls

37 lines (28 loc) · 795 Bytes

Build

To get the Cabal sandbox and dependencies, and build the library oden, run the following:

$ make init-dev
$ make build

Building the CLI on Linux

Due to some strange behaviour in Cabal on Linux regarding linking and executables the CLI build is done in the Makefile. This means that only oden the library can be built with Cabal, using cabal build oden, not cabal build.

To get the oden executable run make cli and it will be available in dist/build-oden-cli/bin/oden.

Distribution

$ make dist
$ file dist/oden-0.2.0-osx.tar.gz
dist/oden-0.2.0-osx.tar.gz: gzip compressed data, ...

Tests

$ make test
# or...
$ make watch-tests
# or run only tests matching a string
$ TEST_PATTERN="Oden.Type.Polymorphic" make watch-test