diff options
author | bie <bie@blekksprut.net> | 2016-11-11 03:08:38 +0900 |
---|---|---|
committer | bie <bie@blekksprut.net> | 2016-11-11 03:08:38 +0900 |
commit | a8b20f35ee908d466ebef67da5671e51567fb19c (patch) | |
tree | 8117339e82a402ae8b4954a3fe211fabc5f28a50 | |
parent | 06947f5d86f9d0026f75005aa2510cba0800072e (diff) | |
download | ukulele-a8b20f35ee908d466ebef67da5671e51567fb19c.tar.xz |
make install; wiki.css -> ukulele.css; wiki.js -> ukulele.js
-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); |