diff --git a/README.md b/README.md index e4a86bb..0aa651e 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,34 @@ macrecord was created by my good friend Armin. You can find his code here: build; at run time the shared `libFLAC` / `libmp3lame` libraries are used. - `pkg-config` (used to locate ALSA, FLAC and LAME) +## Build + +```bash +make +# or directly: +# gcc -std=c99 -O2 -Wall -Wextra tuxrecord.c -o tuxrecord \ +# $(pkg-config --cflags --libs alsa flac lame) -lm +``` + +Install (installs to `$(PREFIX)/bin`, default `/usr/local/bin`): + +```bash +sudo make install +# or: sudo cp tuxrecord /usr/local/bin/tuxrecord +``` + +Install to a custom prefix: + +```bash +make install PREFIX=~/.local +``` + +Uninstall: + +```bash +sudo make uninstall +``` + ## Usage ```bash @@ -176,34 +204,6 @@ same `__.` naming and can be stopped with `q` or `wpctl` output) or by creating a loopback with `pw-loopback` and recording that node. -## Build - -```bash -make -# or directly: -# gcc -std=c99 -O2 -Wall -Wextra tuxrecord.c -o tuxrecord \ -# $(pkg-config --cflags --libs alsa flac lame) -lm -``` - -Install (installs to `$(PREFIX)/bin`, default `/usr/local/bin`): - -```bash -sudo make install -# or: sudo cp tuxrecord /usr/local/bin/tuxrecord -``` - -Install to a custom prefix: - -```bash -make install PREFIX=~/.local -``` - -Uninstall: - -```bash -sudo make uninstall -``` - ## License Apache License 2.0 — see the LICENSE file for details.