aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-27 21:55:13 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-27 21:55:48 +0200
commit6a72955270246168febed859116904e4c55fd699 (patch)
tree9f423b4fbcbbed42e15a89bb1dba9c04190ad528
parent93153289831a5e67f13488054410a20558719d41 (diff)
downloadlibweb-6a72955270246168febed859116904e4c55fd699.tar.gz
README.md: Add install instructions
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index b800eba..b608629 100644
--- a/README.md
+++ b/README.md
@@ -83,6 +83,15 @@ slweb/libslweb.a:
+cd slweb && $(MAKE)
```
+Additionally, `slweb` can be installed using the `install` target. A
+custom prefix can be assigned via the `PREFIX` variable:
+
+```sh
+$ make PREFIX=$HOME/slweb-prefix install
+```
+
+By default, `PREFIX` is assigned to `/usr/local`.
+
#### CMake
```sh
@@ -103,6 +112,14 @@ add_subdirectory(slweb)
target_link_libraries(${PROJECT_NAME} PRIVATE slweb)
```
+Additionally, `slweb` can be installed using the standard procedure
+in CMake. As usual, a custom prefix can be assigned via the
+`CMAKE_INSTALL_PREFIX` variable:
+
+```sh
+$ cmake --install build/ -DCMAKE_INSTALL_PREFIX=$HOME/slweb-prefix
+```
+
### Examples
[A directory](examples) with examples shows how `slweb` can be used by