From f49eba96769927ffb5eb768a995967bf34a2bead Mon Sep 17 00:00:00 2001 From: wi11-holdsworth <83637728+wi11-holdsworth@users.noreply.github.com> Date: Wed, 24 Sep 2025 12:17:15 +1000 Subject: [PATCH] build: create just file for building and running --- .gitignore | 1 + justfile | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 justfile diff --git a/.gitignore b/.gitignore index 276a056..12d9d95 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ cabal.project.local~ .HTF/ .ghc.environment.* .direnv/ +target/ diff --git a/justfile b/justfile new file mode 100644 index 0000000..de9fbad --- /dev/null +++ b/justfile @@ -0,0 +1,15 @@ +exec := "musician" +target := "target" + +# list all commands +default: + @just --list + +# build musician +build: + mkdir -p {{target}} + ghc -O2 -o {{target}}/{{exec}} *.hs + +# run musician +run: + ./target/{{exec}}