From a8b20f35ee908d466ebef67da5671e51567fb19c Mon Sep 17 00:00:00 2001 From: bie Date: Fri, 11 Nov 2016 03:08:38 +0900 Subject: make install; wiki.css -> ukulele.css; wiki.js -> ukulele.js --- Makefile | 10 ++++++++++ ukulele.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 052f049..34496e2 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +TARGET ?= /srv/www/ukulele.cgi +CSSTARGET ?= /srv/www/ukulele.css +JSTARGET ?= /srv/www/ukulele.js + all: ukulele.cgi ukulele.cgi: config.h ukulele.c @@ -9,4 +13,10 @@ config.h: clean: rm -f ukulele.cgi +install: ukulele.cgi + install ukulele.cgi ${TARGET} + install ukulele.css ${CSSTARGET} + install ukulele.js ${JSTARGET} + again: clean all + diff --git a/ukulele.c b/ukulele.c index 96f592c..46bf1a4 100644 --- a/ukulele.c +++ b/ukulele.c @@ -37,8 +37,8 @@ void head(char *page, char *link, char *what) { printf("Content-Type: text/html; charset=utf-8\n\n"); printf("\n"); printf("%s ยท %s\n", title, page); - printf("\n", base); - printf("\n", base); + printf("\n", base); + printf("\n", base); printf("

"); if(link && what && !strcmp(what, "rediger")) printf("%s", what, link, page); -- cgit v1.0