build: create just file for building and running
This commit is contained in:
parent
c3c7851320
commit
f49eba9676
2 changed files with 16 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -22,3 +22,4 @@ cabal.project.local~
|
||||||
.HTF/
|
.HTF/
|
||||||
.ghc.environment.*
|
.ghc.environment.*
|
||||||
.direnv/
|
.direnv/
|
||||||
|
target/
|
||||||
|
|
|
||||||
15
justfile
Normal file
15
justfile
Normal 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}}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue