Skip to content

Commit

Permalink
README: Update installation instruction
Browse files Browse the repository at this point in the history
- Naming the build directory 'build' might be confusing as if there is a command named 'meson build',
  so name it 'builddir' as the official meson documentation does.
- Use the code block syntax of Markdown instead of 4 spaces
- Use convenient 'ninja -C' option
  • Loading branch information
ryonakano committed Aug 5, 2023
1 parent 74ef857 commit c14bc87
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ You'll need the following dependencies to build:
* meson (>= 0.57.0)
* valac

Run `meson build` to configure the build environment and then change to the build directory and run `ninja` to build
Run `meson setup` to configure the build environment and run `ninja` to build

meson build --prefix=/usr
cd build
ninja
```bash
meson setup builddir --prefix=/usr
ninja -C builddir
```

To install, use `ninja install`, then execute with `com.github.sgpthomas.hourglass`

ninja install
com.github.sgpthomas.hourglass
```bash
ninja install -C builddir
com.github.sgpthomas.hourglass
```

0 comments on commit c14bc87

Please sign in to comment.