diff options
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | ukulele.c | 4 |
2 files changed, 12 insertions, 2 deletions
@@ -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 + @@ -37,8 +37,8 @@ void head(char *page, char *link, char *what) { printf("Content-Type: text/html; charset=utf-8\n\n"); printf("<!doctype html>\n"); printf("<title>%s ยท %s</title>\n", title, page); - printf("<link rel='stylesheet' type='text/css' href='%s/wiki.css'>\n", base); - printf("<script src='%s/wiki.js'></script>\n", base); + printf("<link rel='stylesheet' type='text/css' href='%s/ukulele.css'>\n", base); + printf("<script src='%s/ukulele.js'></script>\n", base); printf("<h1>"); if(link && what && !strcmp(what, "rediger")) printf("<a data-text='%s' href='%s'>%s</a>", what, link, page); |