add jquery script, use it to autoload on xnet when xorg cookie is present
[platal.git] / Makefile
index 230f576..4004963 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ VCS_FILTER = ! -name .arch-ids ! -name CVS
 
 all: build
 
-build: core banana wiki
+build: core banana wiki jquery
 
 q:
        @echo -e "Code statistics\n"
@@ -102,6 +102,14 @@ htdocs/images/banana:
 htdocs/css/banana.css:
        cd $(@D) && ln -sf /usr/share/banana/css/style.css $(@F)
 
+##
+## jquery
+##
+
+jquery: htdocs/javascript/jquery.js
+htdocs/javascript/jquery.js:
+       wget http://jquery.com/src/jquery-latest.pack.js -O htdocs/javascript/jquery.js -q
+
 ################################################################################
 
 .PHONY: build dist clean wiki build-wiki banana