diff options
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | wiki.c | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -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 @@ -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) { |