From 0ec3fa9d81e2d43af6710c2c8299383e14e3fbe9 Mon Sep 17 00:00:00 2001 From: the little girl Date: Fri, 11 Oct 2013 17:30:16 +0200 Subject: bake makefile --- Makefile | 5 ++++- wiki.c | 4 ++-- 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("%s ยท %s\n", title, page); printf("\n", base); if(link && what) - printf("

%s

", what, link, page); + printf("

%s

\n", what, link, page); else - printf("

%s

", page); + printf("

%s

\n", page); } void foot(int file) { -- cgit v1.0