aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);