aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 20 insertions, 3 deletions
diff --git a/README.md b/README.md
index d522bcf..a57fe0d 100644
--- a/README.md
+++ b/README.md
@@ -76,14 +76,23 @@ apk add cmake
Two build environments are provided for `libweb` - feel free to choose any of
them:
-- A mostly POSIX-compliant [`Makefile`](Makefile).
+- A [`configure`](configure) POSIX shell and mostly POSIX-compliant
+[`Makefile`](Makefile).
- A [`CMakeLists.txt`](CMakeLists.txt).
`libweb` can be built using the standard build process:
#### Make
+First, generate the `Makefile` via the `configure` script:
+
```sh
+$ ./configure
+```
+
+Then:
+
+```
$ make
```
@@ -93,12 +102,20 @@ the use of recursive `make`. For example, assuming `libweb` is contained on a
subdirectory:
```make
-libweb/libweb.a:
+libweb/Makefile:
+ cd libweb && ./configure
+libweb/libweb.a: libweb/Makefile
+cd libweb && $(MAKE)
```
Additionally, `libweb` can be installed using the `install` target. A
-custom prefix can be assigned via the `PREFIX` variable:
+custom prefix can be assigned via the `configure` script:
+
+```sh
+$ ./configure --prefix=$HOME/libweb-prefix
+```
+
+Or, directly from the generated `Makefile`:
```sh
$ make PREFIX=$HOME/libweb-prefix install