build: create just file for building and running

This commit is contained in:
wi11-holdsworth 2025-09-24 12:17:15 +10:00
parent c3c7851320
commit f49eba9676
2 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View file

@ -22,3 +22,4 @@ cabal.project.local~
.HTF/
.ghc.environment.*
.direnv/
target/

15
justfile Normal file
View file

@ -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}}