aboutsummaryrefslogtreecommitdiff
path: root/examples/html
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-10 23:21:35 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-11 00:07:13 +0200
commit0222b75e8554796548e079aa3393c512ae30ac24 (patch)
tree5a154258ae5c1434a211ee67537e46ef64058437 /examples/html
parent832e198f8c77970b5b923eb18201ba83d9c72b80 (diff)
Rename project from slweb to libwebv0.1.0-rc3
It was found out there was another project of the same name around (https://git.sr.ht/~strahinja/slweb/), also related to website generation. In order to avoid confusion, a new name has been chosen for this project. Surprisingly, libweb was not in use by any distributions (according to https://repology.org and AUR index), and it should reflect well the intention behind this project i.e., being a library to build web-related stuff.
Diffstat (limited to 'examples/html')
-rw-r--r--examples/html/CMakeLists.txt2
-rw-r--r--examples/html/Makefile10
-rw-r--r--examples/html/README.md2
-rw-r--r--examples/html/main.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/examples/html/CMakeLists.txt b/examples/html/CMakeLists.txt
index bc4202d..410663b 100644
--- a/examples/html/CMakeLists.txt
+++ b/examples/html/CMakeLists.txt
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
project(html C)
add_executable(html main.c)
-target_link_libraries(${PROJECT_NAME} PRIVATE slweb dynstr)
+target_link_libraries(${PROJECT_NAME} PRIVATE web dynstr)
diff --git a/examples/html/Makefile b/examples/html/Makefile
index 77d94f8..87d27aa 100644
--- a/examples/html/Makefile
+++ b/examples/html/Makefile
@@ -3,10 +3,10 @@
PROJECT = html
DEPS = \
main.o
-SLWEB = ../../libslweb.a
+LIBWEB = ../../libweb.a
DYNSTR = ../../dynstr/libdynstr.a
CFLAGS = -I ../../include -I ../../dynstr/include
-SLWEB_FLAGS = -L ../../ -l slweb
+LIBWEB_FLAGS = -L ../../ -l libweb
DYNSTR_FLAGS = -L ../../dynstr -l dynstr
all: $(PROJECT)
@@ -16,10 +16,10 @@ clean:
FORCE:
-$(PROJECT): $(DEPS) $(SLWEB) $(DYNSTR)
- $(CC) $(LDFLAGS) $(DEPS) $(SLWEB_FLAGS) $(DYNSTR_FLAGS) -o $@
+$(PROJECT): $(DEPS) $(LIBWEB) $(DYNSTR)
+ $(CC) $(LDFLAGS) $(DEPS) $(LIBWEB_FLAGS) $(DYNSTR_FLAGS) -o $@
-$(SLWEB): FORCE
+$(LIBWEB): FORCE
+cd ../../ && $(MAKE)
$(DYNSTR): FORCE
diff --git a/examples/html/README.md b/examples/html/README.md
index ac89287..4d7544f 100644
--- a/examples/html/README.md
+++ b/examples/html/README.md
@@ -20,6 +20,6 @@ should be written to the standard output:
<head>
<meta charset="UTF-8"/>
</head>
- <body>testing slweb</body>
+ <body>testing libweb</body>
</html>
```
diff --git a/examples/html/main.c b/examples/html/main.c
index c29e360..858aff7 100644
--- a/examples/html/main.c
+++ b/examples/html/main.c
@@ -1,4 +1,4 @@
-#include <slweb/html.h>
+#include <libweb/html.h>
#include <dynstr.h>
#include <stdlib.h>
#include <stdio.h>
@@ -9,7 +9,7 @@ int main()
struct dynstr d;
struct html_node *const html = html_node_alloc("html"), *head,
*meta, *body;
- static const char text[] = "testing slweb";
+ static const char text[] = "testing libweb";
dynstr_init(&d);