aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbie <bie@blekksprut.net>2016-11-11 03:08:38 +0900
committerbie <bie@blekksprut.net>2016-11-11 03:08:38 +0900
commita8b20f35ee908d466ebef67da5671e51567fb19c (patch)
tree8117339e82a402ae8b4954a3fe211fabc5f28a50
parent06947f5d86f9d0026f75005aa2510cba0800072e (diff)
downloadukulele-a8b20f35ee908d466ebef67da5671e51567fb19c.tar.xz
make install; wiki.css -> ukulele.css; wiki.js -> ukulele.js
-rw-r--r--Makefile10
-rw-r--r--ukulele.c4
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("<!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);