aboutsummaryrefslogtreecommitdiffstats
path: root/web/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-09 07:00:06 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-09 07:00:06 -0400
commita57aa309577ed7b2f88d2f8b8aabee1ea62c3597 (patch)
tree689dcf5a69da34103a376501760712e392b5b9ac /web/Makefile
parentSlimmer fading. (diff)
downloadPhotoFloat-a57aa309577ed7b2f88d2f8b8aabee1ea62c3597.tar.xz
PhotoFloat-a57aa309577ed7b2f88d2f8b8aabee1ea62c3597.zip
Add server executer based on htmlunit.
Diffstat (limited to 'web/Makefile')
-rw-r--r--web/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/web/Makefile b/web/Makefile
index 1217206..dd112e9 100644
--- a/web/Makefile
+++ b/web/Makefile
@@ -12,7 +12,7 @@ CSS_COMPILER = utils/yuicompressor --type css
.PHONY: all clean
-all: $(JS_MIN) $(CSS_MIN)
+all: $(JS_MIN) $(CSS_MIN) utils/ServerExecute.class
%.min.js: %.js
@echo "Compiling javascript" $<
@@ -30,6 +30,13 @@ $(CSS_MIN): $(CSS_MIN_FILES)
@echo "Assembling compiled stylesheets"
@cat $^ > $@
+empty :=
+space := $(empty) $(empty)
+classpath := $(subst $(space),:,$(wildcard utils/htmlunit-2.8/*.jar))
+utils/ServerExecute.class: utils/ServerExecute.java
+ @echo "Building HtmlUnit wrapper."
+ @javac -classpath $(classpath) -d utils $^
+
clean:
@rm -fv $(JS_MIN) $(JS_MIN_FILES) $(CSS_MIN) $(CSS_MIN_FILES)