aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--wiki.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fdf45bc..a8cd978 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+all: wiki.cgi
+
wiki.cgi: config.h wiki.c
${CC} -std=c11 -Os -o $@ wiki.c -lmarxup
@@ -5,5 +7,6 @@ config.h:
cp config.def.h $@
clean:
- rm wiki.cgi
+ rm -f wiki.cgi
+again: clean all
diff --git a/wiki.c b/wiki.c
index e0f4660..f06f468 100644
--- a/wiki.c
+++ b/wiki.c
@@ -37,9 +37,9 @@ void head(char *page, char *link, char *what) {
printf("<title>%s ยท %s</title>\n", title, page);
printf("<link rel='stylesheet' href='%s/wiki.css'>\n", base);
if(link && what)
- printf("<h1><a data-text='%s' href='%s' >%s</a></h1>", what, link, page);
+ printf("<h1><a data-text='%s' href='%s' >%s</a></h1>\n", what, link, page);
else
- printf("<h1>%s</h1>", page);
+ printf("<h1>%s</h1>\n", page);
}
void foot(int file) {