aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthe little girl <yui@blekksprut.net>2013-10-11 17:30:16 +0200
committerthe little girl <yui@blekksprut.net>2013-10-11 17:30:16 +0200
commit0ec3fa9d81e2d43af6710c2c8299383e14e3fbe9 (patch)
tree132302d411110aab472de2beb9acbc3b6623b418
parent274a30f7aea0383203aad08c01b06a346def8214 (diff)
downloadukulele-0ec3fa9d81e2d43af6710c2c8299383e14e3fbe9.tar.xz
bake makefile
-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) {