aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-08-27 23:54:10 +0000
committerla-ninpre <leobrekalini@gmail.com>2021-08-27 23:54:10 +0000
commita00752d9d68b00c319bea79afa43d4b118fc216e (patch)
treefe5dfba02569a8bd17744163cb415497c221a54d /README.md
parent0846a40229ad8753419a0ab8a303d3a293df305e (diff)
downloadnimisewi_c-a00752d9d68b00c319bea79afa43d4b118fc216e.tar.gz
nimisewi_c-a00752d9d68b00c319bea79afa43d4b118fc216e.zip
use gnu autotools build system for configuring.v0.1.0
this was kinda tough, but interesting. FossilOrigin-Name: b881bb67b683313959c94ce172b9fb307400c0f43a262f82ab2d3b2c1a8cb557
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/README.md b/README.md
index 15b13c0..016f932 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,7 @@ installation is very straightforward:
```terminal
$ fsl clone https://fsl.aaoth.xyz/nimisewi.c
$ cd nimisewi
+$ ./configure
$ make
$ doas make install
```
@@ -21,8 +22,8 @@ if you want to use nimisewi as cgi script, you can compile it with:
```terminal
$ make distclean
-$ configure --static # if your cgi will be served from chroot
-$ make cgi
+$ ./configure --static # if your cgi will be served from chroot
+$ make nimisewi.cgi
```
or if you want a cgi script for gemini protocol, run:
@@ -30,10 +31,10 @@ or if you want a cgi script for gemini protocol, run:
```terminal
$ make distclean
$ configure --static # if your cgi will be served from chroot
-$ make cgi_gemini
+$ make nimisewi_gemini.cgi
```
-now throw that `nimisewi.cgi` into your cgi-bin folder and serve it as you wish.
+now throw that `nimisewi.cgi` or `nimisewi_gemini.cgi` into your cgi-bin folder and serve it as you wish.
see examples here:
@@ -42,7 +43,7 @@ see examples here:
## usage
-```
+```terminal
$ nimisewi
nanpa apeja pi sin len
@@ -52,11 +53,12 @@ nanpa apeja pi sin len
to add new words, edit `nimitoki.txt` file. add one word per line.
-then, rebuild `nimitoki.c` and `nimitoki.h` and then relink the whole program.
+then, just clean everything and recompile the program.
```terminal
$ vim nimitoki.txt
$ make distclean
+$ ./configure
$ make
...
```