Skip to content

Commit

Permalink
Add serve to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
memowe committed Nov 13, 2023
1 parent 624984d commit 90086d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all build test test_only doc stats
.PHONY: all build test test_only doc serve stats

all: build test doc stats

Expand All @@ -14,6 +14,9 @@ test_only:
doc:
cabal haddock --haddock-hyperlinked-source --haddock-html-location='https://hackage.haskell.org/package/$$pkg-$$version/docs'

serve:
cabal run libro-backend

stats:
find lib -name '*.hs' -not -path "./dist-newstyle/*" | sort | xargs wc -l
find test -name '*.hs' -not -path "./dist-newstyle/*" | sort | xargs wc -l
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cabal install --only-dependencies all
## Run the RESTful JSON web service

```
cabal run libro-backend
make serve
```

## Run tests
Expand Down

0 comments on commit 90086d5

Please sign in to comment.