Skip to content

Commit

Permalink
various changes (#30)
Browse files Browse the repository at this point in the history
* Fix Makefile

* Add usage text for 'katla html'

* Fix Makefile again

* Fix usage text

* Update src/Katla/CLI.idr

Co-authored-by: G. Allais <guillaume.allais@ens-lyon.org>

---------

Co-authored-by: Locria Cyber <74560659+locriacyber@users.noreply.github.com>
Co-authored-by: G. Allais <guillaume.allais@ens-lyon.org>
  • Loading branch information
3 people authored Jul 20, 2024
1 parent 7282c4c commit 1db94bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
project:build/exec/katla
.PHONY: project src install test doc clean

.PHONY:
project: build/exec/katla

build/exec/katla: .PHONY
src: src/**/*.idr

build/exec/katla: src
idris2 --build katla.ipkg

install: build/exec/katla
idris2 --install katla.ipkg
cp -R build/exec/* ~/.idris2/bin/

test: .PHONY
test:
make -C tests

doc:
doc: src
idris2 --mkdoc katla.ipkg

clean:
Expand Down
5 changes: 4 additions & 1 deletion src/Katla/CLI.idr
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ literateCmd = MkCommand
export
htmlCmd : Command "html"
htmlCmd = MkCommand
{ description = "HTML backend"
{ description = """
HTML backend
Usage: html Katla.idr build/ttc/*/Katla.ttm > out.html
"""
, subcommands =
[ "init" ::= initHTMLCmd
]
Expand Down

0 comments on commit 1db94bd

Please sign in to comment.