Skip to content

Commit

Permalink
add make file
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-ward committed Jun 19, 2024
1 parent 44fcd17 commit 716dc53
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*/lsv
bin
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.PHONY: all

all:
@v -prod lsv -o bin/lsv
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ Build `lsv` from source. I plan to have binary releases after beta.

- [Install the V compiler](https://docs.vlang.io/installing-v-from-source.html). It takes a minute or less
- `git clone https://github.com/mike-ward/lsv.git`
- `cd lsv/lsv`
- `v .` or `v -prod .` for an optimized version
- `./lsv`

and your done. No kidding, that's it.
- `cd lsv`
- `make`
- `bin/lsv`

## Help
```
Expand Down
4 changes: 2 additions & 2 deletions lsv/args.v
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn parse_args(args []string) Args {
mut fp := flag.new_flag_parser(args)

fp.application(app_name)
fp.version('2024.1.beta')
fp.version('2024.1.beta.1')
fp.skip_executable()
fp.description('List information about FILES')
fp.arguments_description('[FILES]')
Expand Down Expand Up @@ -124,7 +124,7 @@ fn parse_args(args []string) Args {
fp.footer('
The -c option emits color codes when standard output is
connected to a terminal. Colors are defined in the LS_COLORS
connected to a terminal. Colors are defined in the LS_COLORS
environment variable.'.trim_indent())

files := fp.finalize() or { exit_error(err.msg()) }
Expand Down

0 comments on commit 716dc53

Please sign in to comment.